title: Expressjs POST error: TypeError: Cannot read property 'title' of undefined
body: <p>I tried a lot to figure out why this raises this error:</p>
  
  <pre><code>Configuring
  Listening on 2000
  TypeError: Cannot read property 'title' of undefined
     at /home/abdulsattar/learning/node/express/index.js:9:20
  </code></pre>
  
  <p>The index.js:</p>
  
  <pre><code>var express = require("express"),
      app = express.createServer();
  
  app.get("/", function(req, res) {
    res.send('&lt;form action="/new" method="post"&gt;&lt;input type="text" name="title" /&gt;&lt;input type="submit" /&gt;&lt;/form&gt;');
  });
  
  app.post("/new", function(req, res) {
    res.send(req.body.title);
  });
  
  app.configure(function() {
    console.log("Configuring");
    app.use(express.bodyParser());
  });
  
  var port = process.env.PORT || 2000;
  
  app.listen(port, function() {
    console.log("Listening on " + port);
  });
  </code></pre>
  
  <p>I've read that express needs the <code>bodyParser()</code>. I <code>use</code>d it above, but it always fails. I tried it on versions <code>2.5.8</code> and <code>2.5.8</code> (thinking that could be the problem) but it failed on both the versions. Is there something I'm missing?</p>