Hello,
I have been researching my problem but can get the answer.
here the situation:
1. I have form
2. php is validating the form
3. I DO NOT WANT the 'enter key' to submit the form.
4. I ONLY want the form to be submitted by pressing the submit button.
Here is my shorten code that does not work in the above manner.
Thansk for your help
Larry
<body>
<?php
--initialize all page & form variables---
if ($sendorder = 'Send' && $HTTP_POST_VARS) { ---do my validating--- }
else
--- do nothing ----
?>
--- start the from and all the html code ----
<form name="order_form" method="post" action="<?= $PHP_SELF ?>">
---all the stuff in between----
<input type="submit" name="sendorder" value="Send">