title: Feedback message not being logged on the Node server
body: <p>Can anyone help me understand what I am doing wrong? When you click the send feedback button on my webpage it needs to load a new page that says "Thanks for your feedback!" and then the message from the "customer" should be logged onto the Node server. But I'm getting an error "Form submission canceled because the form is not connected". </p>
  
  <p>Here is the main code that is related to my issue:</p>
  
  <p>function sendFeedback() {                                                  </p>
  
  <pre><code>var feedbackform = document.createElement("FORM");                     
  feedbackform.name="feedbackform";                                      
  feedbackform.method = "POST";                                          
  feedbackform.action = "/feedback";                                     
  var forminput = document.createElement("INPUT");                       
  forminput.type = "TEXT";                                               
  forminputname = "feedback";                                            
  forminputvalue = final_transcript;                                     
  feedbackform.appendChild(forminput);                                   
  feedbackform.submit();   
                                              }                                                                                                                                          
  </code></pre>
  
  <p>I am very new to JavaScript and this is for a course I just started. I just need to understand what I am doing wrong and how to go about fixing it. </p>
  
  <p>This is the code within the server.js file for the customer feedback:</p>
  
  <pre><code>self.createRoutes = function() {
      self.routes = { };
  
      self.routes['/feedback'] = function(req, res) {
          console.log("-- Received a customer feedback: [" + req.body.feedback + "]");
          res.send("&lt;html&gt;&lt;head&gt;&lt;title&gt;WTCU Feedback&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;div style='text-align:center; font-size:24pt'&gt;Thanks for your feedback!&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;");
      };
  
      self.routes['/'] = function(req, res) {
          res.setHeader('Content-Type', 'text/html');
          res.send(self.cache_get('index.html') );
      };
  };  
  </code></pre>
  
  <p>Absolutely any help is greatly appreciated. Thank you!</p>
  
  <p>Molly                                                                      </p>