If you use JavaScript you can create a global boolean variable that initially false. With onSubmit you'll return the value of that variable. The sbmit button will change that variable to true!
I think this works, perhaps there is another method!
Hi, what I do is instead of adding a submit button to the form I add a regular button to the form then on the onClick event of the button i call a javascript function that any validation that you want or just submit the form when the use rclicks the button. If they hit enter it will do nothing.
Example:
<html>
<head>
<script language ="javascript">
function onSubmit()
{
document.formname.submit();
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.