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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]