difference between 2 methods of form submissions
<p>What is the difference between these two form submission methods?</p>

<pre><code>&lt;form method="post" action="gert.php" onsubmit="return validate()"&gt;
    &lt;p&gt;Enter an email address:&lt;/p&gt;
    &lt;input id='email'&gt;
    &lt;button type='submit' id='validate'&gt;Validate!&lt;/button&gt;
&lt;/form&gt;

&lt;form method="post" action="gert.php" onSubmit='validate(); return false;'&gt;
    &lt;p&gt;Enter an email address:&lt;/p&gt;
    &lt;input id='email'&gt;
    &lt;button type='submit' id='validate'&gt;Validate!&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p>I'm using the first one in submitting forms and returning <code>false</code> in the JavaScript <code>validate()</code> function if the form is not filled out. Just now in another website, I have seen the second one being used. I am unable to figure out the difference, so I want to know if I'm using still old ways in doing the things or if both mean the same thing? I was thinking in the second way, form will be submitted only if <code>thisform.submit</code> statement is executed. I came to know this when I executed the form but I still want to know what is the major difference between the two?</p>
