PHP form wont submit
<p>I have a simple form:</p>

<pre><code>&lt;form name ="Add" action="Add-Results.php" method="post"&gt;
 &lt;label for="name" class="smallfont"&gt;Name&lt;/label&gt;
 &lt;input type="text" name="name" size="30" /&gt;
 &lt;label for="name_error" class="error"&gt;Please enter a name&lt;/label&gt;
 &lt;input type="image" name="submit" src="../Content/Images/login-submit.gif"&gt;
&lt;/form&gt;
</code></pre>

<p>Which works fine until I add in the following jquery</p>

<pre><code>$(document).ready(function()
{
 $(".error").hide();
 $("input[name=submit]").click(function() 
 {
  $(".error").hide();
  var name = $("input[name=name]").val();

  if (name == "") $("label[for=name_error]").show();

 return false;
 });

});
&lt;/script&gt;
</code></pre>

<p>When I put in the jquery nothing happens when I click the submit. When I take out the jquery the form posts without a problem. Any ideas?</p>
