Re: variable ?

From: Date: Mon, 18 Dec 2000 20:57:47 +0000
Subject: Re: variable ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30904@lists.php.net to get a copy of this message
Hi Mike! On Mon, 18 Dec 2000, Mike wrote: > I have a form that passes 4 of a possible 8 variables to a script.How can I > tell which 4 were passed? > Mike P > mpeloso@princeton.edu here's my favourite: user arrays, namely instead of <input name="var1" ...> use <input name="vars[foo]" ...> so on, then you simply say : $stuff = $vars['foo']; or the careful programmer with E_ALL and all, would write something along: isset($vars['foo']) && ($stuff = $vars['foo']); cheers, -- teodor

« previous php.general (#30904) next »