AW: [PHP] textfield vaules not accessable??

From: Date: Tue, 29 Aug 2000 17:31:50 +0000
Subject: AW: [PHP] textfield vaules not accessable??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14187@lists.php.net to get a copy of this message
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? > -----Ursprüngliche Nachricht----- > Von: cisman raage [mailto:cisman_php@yahoo.com] > Gesendet am: Dienstag, 29. August 2000 19:01 > An: php-general@lists.php.net > Betreff: [PHP] textfield vaules not accessable?? > > I am having this problem: > > I generate textfields in a loop. The textfields have > initial vaules. Then the user can edit the values. The > problem is when I cannot get the values after the user > edited the textfields. I am using something like this > to generate the textfields in the loop: > > for($i = 0; $i < $loop_count; $i++){ > <input type='text' > name='fields:$group_id:topic_id[$i]' value='$grade'> > } > > I have another function that needs to get the values > from this form and I cannot do it. Any ideas?? Please > help. > > Thank you. > isman > > ===== > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > 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 (#14187) next »