I have a form with 3 submit buttons.
When the first is pressed the form is submitted then redirected.
When the 2nd is pressed it needs to submit then go to the next record form page (i have this code done)
When the 3rd is pressed it needs to submit then go to the previous record form page (i have this code done).
What I am having trouble with is determining which submit button the user pressed.
How can I set a variable or something so that when they push the save and next button it submits the form and redirects to the proper page and so forth?
The form will submit to $_SERVER['PHP_SELF'] so the code to see which button was used will go in a if(isset($_REQUEST['submit'])) section on the same page as the form resides.
note: I am unable to change the type of form or method of submitting