title: HTML Form Validation Assistance
body: <p>Im in the process of creating a simple HTML contact form and I would like to validate three fields; Name, Email and Message. However Im not the smartest when it comes to javascript field validation and would like some assistance. My current form is below:</p>
  
  <pre><code>&lt;form action="cgi-bin/FormMail.pl" method="post"&gt;
  &lt;input type="hidden" name="subject" value="From the feedback form" /&gt;
  &lt;input type="hidden" name="redirect" value="thankyou.html" /&gt;
  &lt;p&gt;Whatever you want to say here&lt;/p&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;td align="left"&gt;Name:&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="name" size="30" value="" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td align="left"&gt;E-Mail:&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="email" size="30" value="" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td align="left"&gt;Content:&lt;/td&gt;
  &lt;td&gt;&lt;textarea name="comment" cols="50" rows="5"&gt;&lt;/textarea&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;input type="submit" value="Submit" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;input type="hidden" name="redirect" value="thankyou.html" /&gt;
  &lt;/form&gt;
  </code></pre>