title: undefined null error in node.js with redis server?
body: <p>My node.js code to connect redis server is like this</p>
  
  <pre><code>    var http = require("http"),
    querystring = require("querystring"),
    redis = require("redis"),
    db = redis.createClient(6379, "127.0.0.1"); 
  
  db.set("Jaime", "Developer", function(){});
  
  http.createServer(function(req, res) {
    var qs = querystring.parse(req.url.split("?")[1]),
      firstName = qs.firstName;
  
    db.get(firstName, function(err, lastName) {
      var userName = firstName + " " + lastName,
        html = "&lt;!doctype html&gt;" +
          "&lt;html&gt;&lt;head&gt;&lt;title&gt;Hello " + userName + "&lt;/title&gt;&lt;/head&gt;" +
          "&lt;body&gt;&lt;h1&gt;Hello, " + userName + "!&lt;/h1&gt;&lt;/body&gt;&lt;h2&gt;I am in this page&lt;/h2&gt;&lt;/html&gt;";
  
      res.end(html);
  
    });
  }).listen(8000);
  </code></pre>
  
  <p>my redis server is also running and give a message like this</p>
  
  <blockquote>
    <p>[3648] 13 Oct 11:43:00 * The server is now ready to accept connections
    on port 6 379 [3648] 13 Oct 11:43:01 - DB 0: 3 keys (0 volatile) in 4
    slots HT. [3648] 13 Oct 11:43:01 - 0 clients connected (0 slaves),
    672976 bytes in use [3648] 13 Oct 11:43:06 - DB 0: 3 keys (0 volatile)
    in 4 slots HT. [3648] 13 Oct 11:43:06 - 0 clients connected (0
    slaves), 672976 bytes in use</p>
  </blockquote>
  
  <p>when I connect it with browser (http://localhost:8000) the server status gives</p>
  
  <blockquote>
    <p>[3648] 13 Oct 11:45:07 - Accepted 127.0.0.1:1715 [3648] 13 Oct
    11:45:10 - DB 0: 3 keys (0 volatile) in 4 slots HT. [3648] 13 Oct
    11:45:11 - 1 clients connected (0 slaves), 680892 bytes in use</p>
  </blockquote>
  
  <p>and the browser out is this</p>
  
  <p><strong>Hello, undefined null!
  I am in this page</strong></p>
  
  <p>I am a entirely new to this .. I don't know how to make this work  please help me.</p>