rossored
06-07-2004, 11:39 AM
I seem to remember reading somewhere that php allows a different action to be executed on a form if you have more than one submit button, and that the action of said form is dictated by which button the user clicks.
Presumably, I need to have the form action going to another php page where this information is digested in the form of an "IF" script, do I?
Or is it possible to write an "IF" statement on the same page that sends the user to a different page depending on which button they click?
So basically, what I want is one button to take someone to one page, and another button to take someone to another page - but both buttons are on the same form. Possible or pipe dream?
Presumably, I need to have the form action going to another php page where this information is digested in the form of an "IF" script, do I?
Or is it possible to write an "IF" statement on the same page that sends the user to a different page depending on which button they click?
So basically, what I want is one button to take someone to one page, and another button to take someone to another page - but both buttons are on the same form. Possible or pipe dream?