I'm trying to make a script that gets a list of merchandice and prices from a MySQL-server, prints them on screen in a form, lets the user edit what he wants and updates the database.
The get, print and edit-parts are working, my problem is this: I can't know how many items the list will hold (and the user can allso add some) so the update-script for the database must handle a dynamic amount of variables from the form.
The form, by means of a while-loop sends the data as name1, price1, name2, price2 etc...
How can I get the update-script to read these?
I tried to combine $name$ant ($ant is the counter in the while-loop in the update-script) but that didn't work....
Tips, tricks, hints...Anyone??
Hope somebody can help.
Rincewind the Wizzard