can we have two submit buttons in php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mujaffar
Forum Newbie
Posts: 13
Joined: Tue Dec 22, 2009 11:16 pm

can we have two submit buttons in php?

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: can we have two submit buttons in php?

Post by requinix »

Yeah. Sure.

You have a more specific question in mind?
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: can we have two submit buttons in php?

Post by manojsemwal1 »

yes use <form> for each button.................
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: can we have two submit buttons in php?

Post 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.
Post Reply