RE: [PHP] Variable Next To Variable?

From: Date: Wed, 11 Jul 2001 17:55:08 +0000
Subject: RE: [PHP] Variable Next To Variable?
Groups: php.general 
Request: Send a blank email to php-general+get-57451@lists.php.net to get a copy of this message
how about : if ((isset($number ))&&($number <= $max)){ while ($number > 0;$number -- ) { echo '<TR><TD>Last Name</TD><TD><INPUT TYPE="Text" NAME="'.$number.'last_name">';} } if you're not crazy about having the fields labled in reverse order you could push to an array and then arsort the array. ____________________________ Matthew Luchak Webmaster Kaydara Inc. mluchak@kaydara.com What I'm doing is having a form page ask, "How many children do you want to sign up?" Then it spits out form fields for as many children as they asked for. So each field has name="C_Last_Name$x" and $x in incremented for each child. Should I make it name="C_Last_Name[$x]" ? Jeff Oien

« previous php.general (#57451) next »