Variable Next To Variable?

From: Date: Wed, 11 Jul 2001 17:02:17 +0000
Subject: Variable Next To Variable?
Groups: php.general 
Request: Send a blank email to php-general+get-57423@lists.php.net to get a copy of this message
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

« previous php.general (#57423) next »