I am using a javascript rollover button to submit a login form using the onClick="javascript:submit()" attribute. I have a question which I hope someone here can answer. I normally detect form submissions this way:
Submitting Page:
<input type="submit" name="Submit">
Processing Page:
if($_POST["Submit"]) {
//process form contents
}
However, this won't work when using the Javascript button method. Is there a workaround to detect a form submission when using the onClick method? I ask because I have a wonderful login form object I have been using, but need to accomodate it to handle the Javascript button. I'd like to leave the object as is, and was hoping there was a change I could make to the form itself.