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