My current script submits the form if a certain option field is changed. The form is submitted back to the same page for processing with PHP. The problem is that this triggers my form validation code, and puts a message on the screen prompting the user to correct those errors.
I need to be able to tell if the submit button was pressed, or if 'onchange' submitted the form so that the program logic can decide whether or not to validate the data. How can I do this?
<form id="invoiceInput" name="invoiceInput" method="POST" action="<?php echo $editFormAction; ?>">
<option value=""> </option>