How to stop a form submitting if multiple regular expressions are not matched
<p>I want to submit a form that checks two regular expressions.
However, when i use:</p>

<pre><code>&lt;input id = "submit" type="submit" value="Submit" onclick="return validateCode(postalCode); return validateCard(cardNumber)" /&gt;
</code></pre>

<p>I only seem to be able to check agains the postal code (and then return to the page), it wont check the card number at all?</p>
