note 1297 deleted from language.variables.external by philip

From: Date: Mon, 01 Apr 2002 05:29:46 +0000
Subject: note 1297 deleted from language.variables.external by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28445@lists.php.net to get a copy of this message
Concerning variables given by the HTML checkbox: Why so complicated? Simply give the checkbox a value, any value you want (e.g. if you have "( ) I would like to get a free lightsaber sent to my house" you simply name it something like <name="lightsaber"> and give it the <value="yes">, which will not show up in your browser). Then in PHP you can use "if ($lightsaber=="yes") { ... etc. to do whatever you want with this variable. If you have more than one checkbox, you will have to combine the conditions for the if-clauses according to whatever you want PHP to do. May the force be with you. I hope I could help. :o)

« previous php.notes (#28445) next »