B
Bilal
Hi,
I have a field that requires validation when you press a button as
follows:
<form name="form_affiche" enctype = "multipart/form-data"
method="get">
.....
<td width="80"><input type="Button" name="submitButton"
value="Modifier" tabindex="3" onClick="if(isValid())
{document.form_affiche.action='order.php';document.form_affiche.submit();}return
false;"></td>
.....
</form>
The validation works perfectly when the button is pressed. However,
should the user enter an invalid number and press ENTER as opposed to
the button "Modifier", then the invalid number is taken into
consideration.
Thank you in advance for any suggestion or solution.
Kind regards
Bilal
I have a field that requires validation when you press a button as
follows:
<form name="form_affiche" enctype = "multipart/form-data"
method="get">
.....
<td width="80"><input type="Button" name="submitButton"
value="Modifier" tabindex="3" onClick="if(isValid())
{document.form_affiche.action='order.php';document.form_affiche.submit();}return
false;"></td>
.....
</form>
The validation works perfectly when the button is pressed. However,
should the user enter an invalid number and press ENTER as opposed to
the button "Modifier", then the invalid number is taken into
consideration.
Thank you in advance for any suggestion or solution.
Kind regards
Bilal