RE: [PHP] passing different variables with SUBMIT

From: Date: Thu, 02 Nov 2000 01:19:01 +0000
Subject: RE: [PHP] passing different variables with SUBMIT
Groups: php.general 
Request: Send a blank email to php-general+get-23285@lists.php.net to get a copy of this message
<INPUT TYPE=SUBMIT NAME='updatebutton' VALUE='Update'> <INPUT TYPE=SUBMIT NAME='deletebutton' VALUE='Delete'> In the receiving script: <? if ($updatebutton) { // Update code } else { // Delete code } ?> Or, put a dropdown box next to the submit button with the options in it :) -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Give me ambiguity or give me something else. > -----Original Message----- > From: David Kalosi [mailto:kalosi@globtel.sk] > Sent: Thursday, November 02, 2000 2:49 AM > To: php-general@lists.php.net > Subject: [PHP] passing different variables with SUBMIT > > > Hello > > I know there is a possibility to pass different variables to > a php script > with more SUBMIT buttons > > For example I would Have two subbmit buttons one UPDATE adn > one DELETE. I > need to pass a variable telling the script > if it should generate a update form or a delete form > > Can anybody help me? > > > Thanx a lot > > -- > 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 (#23285) next »