So, I have a form, the form was being accidently submitted by enter key presses. So rather then having
I changed it to run a little javascript
This prevents the form from being submited via an accidential enter key push. However, when the form is submitted, I no longer have the $_POST['submitform'] variable letting me know that the form was actually submited.
So, how do I keep people from accidently submiting the form and maintain some type of variable letting me know when the page was submited?
Thanks in advaince.
Code:
<input type="submit" name="submitform" value="submit">
Code:
<input type="button" name="submitform" value="Submit" onClick="document.mainsubmitform.submit()">
So, how do I keep people from accidently submiting the form and maintain some type of variable letting me know when the page was submited?
Thanks in advaince.