title: How to send data from html to node.js
body: <p>I'm a rookie in web languages so please do excuse me if my question is foolish. Basically I'm trying pass data from <code>html-form</code> to <code>node.js</code> server but even after searching a lot in google I couldn't get any relevant examples. So, can anyone please help me to learn this thing ?</p>
  
  <p>The following example I found for parsing data to <code>php</code> script so how can I tweak this code to pass data to <code>node.js</code> script.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;form action="/action.php" method="get" target="_blank"&gt;
   First name: &lt;input type="text" name="fname"&gt;&lt;br&gt;
   Last name: &lt;input type="text" name="lname"&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit"&gt;
   &lt;/form&gt;
  
  &lt;p&gt;Click on the submit button, and the input will be sent to a page on the server called "/action_page.php".&lt;/p&gt;
  </code></pre>
  
  <p>
     </p>