How to post data to HTML using Express.js?
<p>I'm finishing a project from my dev bootcamp course and I'm having trouble posting new data to my html via form. I have the HTML all setup, but whenever I post new data, nothing shows! I also want the page to be redirected to a specific topic. </p>

<p>app.js</p>

<pre><code>app.get('/comments/new', function(req, res){
res.send(fs.readFileSync('./views/comments/newComment.html', 'utf8'));
});


app.post('/topics/:id', function(req, res){
var id = req.params.id;
console.log(req.body);
db.run("INSERT INTO comments(person_created, input) VALUES ('" + req.body.person_created + "','" + req.body.input + "')");
res.redirect("/topics/ "  + id)

});

app.get('/topics/:id', function(req, res){
var id = req.params.id;

db.all("SELECT * FROM topics WHERE id = " + id + ";", {}, function(err, topic){
    console.log(topic)

    var body = topic.body;

db.all("SELECT * FROM comments WHERE topic_id = " + id + ";", {}, function(err, comment){

    var person_created = comment.person_created;
    var input = comment.input

    fs.readFile('./views/topics/show.html', 'utf8', function(err, html){
        var renderedHTML = Mustache.render(html, {body:topic, person_created:comment, input:comment});
        res.send(renderedHTML);
        console.log(comment);

    });
    });
});
});
</code></pre>

<p>schema.js</p>

<pre><code>var sqlite3 = require ('sqlite3');
var db = new sqlite3.Database('./forum.db');


db.serialize(function(){
db.run("CREATE TABLE topics(id integer primary key AUTOINCREMENT, title  varchar, creator varchar, date varchar, body varchar);")
db.run("CREATE TABLE comments(person_created varchar, input varchar, topic_id integer, FOREIGN KEY (topic_id) references topics(id));")

db.parallelize(function(){
db.run("INSERT INTO topics(title, creator, date, body) VALUES ('Top R&amp;B Hits of the 80s', 'Michael', '4/15/15', 'Please share some of your favorite R&amp;B Hits from the decade!' );")
db.run("INSERT INTO comments(person_created, input, topic_id) VALUES ('Sheila', 'Bille Jean by Michael Jackson', 1);")
db.run("INSERT INTO comments(person_created, input, topic_id) VALUES ('George ', 'Gett Outta of My Dreams by Billy Ocean', 1); ")
   });
   });
</code></pre>

<p>newComment.html</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang='en'&gt;
&lt;head&gt;
     &lt;style type="text/css"&gt;
    body{
    background-color: gray;

     }
      &lt;/style&gt;
    &lt;meta charset='UTF-8'&gt;
    &lt;title&gt;Create New Comment&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form action="/topics/:id" method="POST"&gt;

&lt;center&gt;

&lt;label&gt;

    Name:
      &lt;br /&gt;
      &lt;input type="text" name="name" rows="10" cols="50" /&gt;
&lt;/label&gt;

&lt;label&gt;

       &lt;br /&gt;
       &lt;p&gt;&lt;/p&gt;

    Comment:

       &lt;br /&gt;

       &lt;textarea type="text" name="name" rows="10" cols="50"&gt;
       &lt;/textarea&gt;
       &lt;/label&gt;
       &lt;br /&gt;
        &lt;button&gt;Submit&lt;/button&gt;
        &lt;/center&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
</code></pre>

<p>show.html</p>

<pre><code>  &lt;!DOCTYPE html&gt;
  &lt;html lang='en'&gt;
  &lt;head&gt;
  &lt;style type="text/css"&gt;
  body{
  background-image: url("http://blog.paradizo.com/wp- content/uploads/2010/03/nyc-empire-room.jpg");
   background-position: center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-size: 100% auto;

   }


   &lt;/style&gt;
   &lt;meta charset='UTF-8'&gt;
   &lt;title&gt;Topic ID&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;center&gt;

  {{#body}}
  &lt;h1&gt;{{body}}&lt;/h1&gt;
  {{/body}}


 &lt;h2&gt;Comments&lt;h2&gt;

 &lt;h3&gt;
 &lt;ol&gt;
 {{#person_created}}
 &lt;li&gt;
 {{person_created}} - {{input}}

 &lt;/li&gt;
 {{/person_created}}
 &lt;/ol&gt;
 &lt;/h3&gt;







&lt;form action="/comments/new" method='GET'&gt;
&lt;button&gt;Create New Comment&lt;/button&gt;
&lt;/form&gt;
&lt;/center&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>