Re: AW: [PHP] textfield vaules not accessable??

From: Date: Tue, 29 Aug 2000 16:51:55 +0000
Subject: Re: AW: [PHP] textfield vaules not accessable??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14193@lists.php.net to get a copy of this message
Just a suggestion, instead of using the trailing variable names, better use arrays. It is far easier to manipulate. Joao Prado Maia wrote: > On Tue, 29 Aug 2000, bemorph wrote: > > > you have to name the fields this way: > > > > for($i = 0; $i < $loop_count; $i++){ > > $label="textfieldname".$i; > > <input type='text' name='label' value='$grade'> > > } > > > > Then you will get the same as: > > > > <input type='text' name='textfieldname1' > > value='$grade'> > > <input type='text' name='textfieldname2' > > value='$grade'> > > <input type='text' name='textfieldname3' > > value='$grade'> > > > > and so on! > > Is this your solution? > > Actually what he will get is a nasty parse error. Where's your echo / > print function inside that loop ? > > Joao > > -- > Joao Prado Maia > Web Developer > Kefta.com, Inc > > -- > 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

« previous php.general (#14193) next »