note 1298 deleted from Variables from outside PHP by ronabop

From: Date: Fri, 25 Aug 2000 08:24:54 +0000
Subject: note 1298 deleted from Variables from outside PHP by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3130@lists.php.net to get a copy of this message
Sorry, I guess there is a first time for everything.<br> So here it is again, my note, hopefully complete this time.<p> Give the checkbox a value, any value you want (e.g. if you have<p><ul>"( ) I would like to get a free lightsaber sent to my house"</ul><p>you simply name it something like &lt;name=&quot;lightsaber&quot;&gt; and give it the value &lt;value=&quot;yes&quot;&gt;, which will not show up in your browser). Then in PHP you can use<p><ul>&quot;if ($lightsaber==&quot;yes&quot;) { ... etc.</ul><br>to do whatever you want with this variable.<p>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.<p>May the force be with you. I hope I could help. :o)

« previous php.notes (#3130) next »