Re: [PHP] Form Loop

2008-10-19 Thread Bastien Koert
> >> >> the name value quantity needs the value of x appended to it. quantity_1, >> quantity_2 etc. >> > I recommend using array notation instead of appending $x to the element > name. If you are using POST, when the form is submitted the values are > available in the $_POST['quantity'] array. You

Re: [PHP] Form Loop

2008-10-19 Thread Ashley Sheridan
On Sun, 2008-10-19 at 14:10 +0530, Sudheer wrote: > > I'm trying to create a form with a loop. I need to append a value to a > > field name each time through the loop. For Instance: > > > > while ($row = mysql_fetch_assoc($result)) { > > $x=1; > > echo "";echo " > name='quantity_' siz

Re: [PHP] Form Loop

2008-10-19 Thread Sudheer
I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1; echo "";echo "name='quantity_' size='2' value='$row[qty]' />"; ?> echo ""; $x++; } the name va

[PHP] Form Loop

2008-10-18 Thread Terry J Daichendt
I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1; echo ""; echo "value='$row[qty]' />"; echo ""; $x++; } the name value quantity needs the value