Re: Variable Next To Variable?
| From: | Francis Fillion | Date: | Wed, 11 Jul 2001 17:07:32 +0000 |
| Subject: | Re: Variable Next To Variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57426@lists.php.net to get a copy of this message | ||
You could use an array:
like
<input type=text name=C_Last_Name[1]>
Way better this way
and you oculd do:
$y=1;
while($y<count($C_Last_Name)){
if(!$C_Last_Name[$y]){
error stuff;
y++;
}
}
Jeff Oien wrote:
>
> Sorry if this has been brought up 100 times.
>
> I want to do this:
>
> $y = "1";
>
> while ($y <= "$Number_Children") {
> if (!$C_Last_Name$y) {
> error stuff;
> $y++;
> }
> }
>
> The form submitting information to this code has field name like
> C_Last_Name1 C_Last_Name2 depending on how many Children
> are signing up for something. So I need $y to represent the number.
>
> Hope that makes sense. Thanks for any help.
> Jeff Oien
>
> --
> 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
--
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.com