Re: passing different variables with SUBMIT

From: Date: Wed, 01 Nov 2000 19:28:18 +0000
Subject: Re: passing different variables with SUBMIT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23178@lists.php.net to get a copy of this message
if your input button was in your form like so: <input type="submit" name="Submit" value="whatever"> In your script you just do this: if ($Submit=="whatever") { do the code } or do a switch($Submit) statement if you would prefer. Jeanne ----- Original Message ----- From: "David Kalosi" <kalosi@globtel.sk> To: <php-general@lists.php.net> Sent: Wednesday, November 01, 2000 8:49 AM 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 (#23178) next »