title: Someone suggested i use Jquery to validate my Form But its not working, how do i fix?
body: <pre><code>&lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-1.8.3.min.js"     type="text/javascript"&gt;&lt;/script&gt;
  &lt;script     src="http://cdn.jsdelivr.net/jquery.validation/1.14.0/jquery.validate.js"&gt;            &lt;/script&gt;
  &lt;script     src="http://cdn.jsdelivr.net/jquery.validation/1.14.0/jquery.validate.min.jsSS"&gt;    &lt;/script&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  
  &lt;script&gt;
  $function() {
  $("#Subscribe").validate({
      rules: {
          Name: {
              required: true,
              minlength: 2,
              maxlength: 15,
              },
          Email: {
              required: true,
              email: true
              },
          Dob: {
              required: true,
              number: true
              },
              &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form id="Subscribe" method="POST" action="subscribe.php"&gt;
  &lt;p&gt;&lt;span&gt;Enter Name: &lt;/span&gt;&lt;input id="Name" type="text" name="Name"     size="20"&gt;&lt;/p&gt;
  &lt;p&gt;&lt;span&gt;Enter Email: &lt;/span&gt;&lt;input id="Email" type="text" name="Email"     size="20"&gt;&lt;/p&gt;
  &lt;p&gt; Enter DOB: &lt;input id="Dob" type="text" name="Dob" size="20"&gt;&lt;/p&gt;
  &lt;p &gt;&lt;span&gt;&lt;input type="submit" value="Save Data" name="Submit"&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And the PHP which leads to another page once true
      
  
  <pre><code>$location = "subscribe.1.homepage.html";
  header( "Location: $location" );
  </code></pre>
  
  <p>I need to code to have validation on the email, dob and name and I cant seem to get it working. I believe i've done it all correctly but arnt too sure. i only started looking into it last night</p>