title: Trying to create a comments section on my website using Javascript
body: <p>Okay, so I'm trying to create a comments section using javascript on my website. So far the tutorials I have looked at are really hard to follow. All I want to know is how I post strings and numbers to a server.This is what I have so far...</p>
  
  <p>I'm having absolutely no joy.I'm using an external javascript file.  </p>
  
  <p>so far, here's the HTML: </p>
  
  <pre><code> &lt;form action="#" class="add_comment"&gt;
  
          &lt;label&gt;Name
            &lt;input type="string" name="name"&gt;
          &lt;/label&gt;&lt;br&gt;
          &lt;label&gt;Email
            &lt;input type="string" name="email"&gt;
          &lt;/label&gt;&lt;br&gt;
          &lt;label&gt;Comment
           &lt;textarea name="comment"&gt;&lt;/textarea&gt;
          &lt;/label&gt;
          &lt;input type="submit" value="Add Comment"&gt;
        &lt;/form&gt;
  </code></pre>
  
  <p>and here's the Javascript:</p>
  
  <pre><code>....bloody nowhere.
  </code></pre>
  
  <p>I am actually using Javascript but it's painfully embarrassing stuff that I've tried to edit from W3schools.com. However, all they have on there is code that is used within the HTML, I need an external Javascript file. </p>
  
  <p>As you can see I'm really struggling. I need the comments, names etc to post to a URL. I'd really like some advice on where I could find material on this stuff. Everything I google comes up with nothing (perhaps because I'm phrasing my questions wrong). </p>
  
  <p>Any tutorial links or perhaps advice from someone handy with Javascript would be amazing.</p>