anfo Posted January 19, 2009 Share Posted January 19, 2009 is it possible to have multiple 'submit' buttons on one page and to be handled on one page? could it be done with a switch statement? any help gratefully recieved Link to comment https://forums.phpfreaks.com/topic/141411-question-on-switch-statements/ Share on other sites More sharing options...
chronister Posted January 19, 2009 Share Posted January 19, 2009 yes it is possible. You just create the buttons you want, and give them different names. Then when the form is posted, look for a particular name and do something with it. If you have criteria for displaying the button, e.g. if this equals that, display button 1, else display button 2, then use a switch statement to analyze your arguments, and display the one you wish based on those items. Nate Link to comment https://forums.phpfreaks.com/topic/141411-question-on-switch-statements/#findComment-740243 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.