Page 1 of 1

can we have two submit buttons in php?

Posted: Thu Dec 31, 2009 4:37 am
by mujaffar
a php page can have two submit buttons

and on single page when clicking different buttons on that page
different functions will call

Re: can we have two submit buttons in php?

Posted: Thu Dec 31, 2009 4:42 am
by requinix
Yeah. Sure.

You have a more specific question in mind?

Re: can we have two submit buttons in php?

Posted: Thu Dec 31, 2009 5:25 am
by manojsemwal1
yes use <form> for each button.................

Re: can we have two submit buttons in php?

Posted: Thu Dec 31, 2009 7:12 am
by jayshields
manojsemwal1 wrote:yes use <form> for each button.................
Not necessarily - you would only do that if you wanted the submit buttons to have different actions.