RE: [PHP] passing different variables with SUBMIT

From: Date: Wed, 01 Nov 2000 17:00:04 +0000
Subject: RE: [PHP] passing different variables with SUBMIT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23184@lists.php.net to get a copy of this message
You could try it as follows: <input type="submit" value="update" name="update" label="update"> <input type="submit" value="delete" name="delete" label="delete"> In the PHP program that you call, you could just check the value of submit, and do accordingly: <? If ($submit == "update") { // Do the update stuff.. } Else { // Do the delete stuff.. } ?> Hope this helps.. Shanx | -----Original Message----- | From: David Kalosi [mailto:kalosi@globtel.sk] | Sent: Thursday, November 02, 2000 12: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 | | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.198 / Virus Database: 95 - Release Date: 04-Oct-00

« previous php.general (#23184) next »