Dynamic Form List - how to change values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a list from a MYSQL database that I am dumping to a screen. I'd like the user to be able to change the quantity on the form for any record on the screen, then post that information back so the user can review it, and I can then update the database.

Simple checkout routine. Or so I thought.

I have these fields displayed on the screen before the user changes the quantity:

$imageqty = $row["cialbum"]."-".$row["ciset"]."-".$row["ciimage"];
$qty = $row["ciqty"];
print "<td align='center' valign='top'><input type='text' name='$imageqty' size='5' value='$qty'></td>";

I've set the $imageqty variable to hold the initial value from the database. The initial screen works fine.

However, when I reprocess the file, how can I retrieve the original value of the field that is named the same as $imageqty?

The form outputs something like this:
http://.../chkout.php?NATURE-1.jpg=6&continue=Continue+Checkout, which does show the $imageqty of "NATURE-1.jpg" value with the new qty of "6".

How can I get the script to pull the value?

$imageqty = $row["cialbum"]."-".$row["ciset"]."-".$row["ciimage"];	
$newqty = $_GET["$imageqty"];	

Retrieves nothing.

Thanks for your help.

Pat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux