Re: multiple submit buttons

From: Date: Sat, 25 Nov 2000 07:52:02 +0000
Subject: Re: multiple submit buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27113@lists.php.net to get a copy of this message
hi all.. i think if u wanna do that javascript is best solution this is example for multiple submit using javascript this is still has form data go to any other scripts <scipt> function submit1() { document.multisubmit.action='action1.php'; oksubmit(); } function submit2() { document.multisubmit.action='action2.php'; oksubmit(); } function oksubmit() { document.multisubmit.submit(); } </script> <form name=multisubmit> <input type=text name=test> . . . . <input type=button value='submit1' onClick='submit1()'> <input type=button value='submit2' onClick='submit2()'> </form> ----- Original Message ----- From: "Deepak Chawla" <dchawla@usa.unl.edu> To: <php-general@lists.php.net> Sent: Saturday, November 25, 2000 4:39 PM Subject: [PHP] multiple submit buttons > Hi all, > > I need two submit buttons in a html form, and i need them to do two > different things...eg: a text box for a filename and two submit buttons, > one for opening the file and another for deleting it. Since both require > the filename field.. both have to be submit buttons. > html in itself doesn't provide means for doing this... is there any way > to do it ?? > > regards > -deepak > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27113) next »