Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A form with two submit buttons?

Status
Not open for further replies.

ilmaggy

Programmer
Jan 4, 2005
11
NL
Hi,

I made a form and I want two submit buttons. Both linking to the same handler or if possible to different handlers.
One submit has to open the handler in a pop-up the other one just in the same window (so that the mother page redirects, as in a normal form).
I thought this must be possible if the submit buttons have different names and then I need some kind of a if($_POST['submit1']){ do this }
if($_POST['submit2']){ do that }
Maybe something like this is possible in Javascript too?
So that the script knows what to do before the data is sended.
Thanking you in advance,
ruben.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top