Thanks for the reply Houdini. Sorry, should have posted the code originally, it had been a long day!! 😉
I was having problems with the names of the input boxes, so I created new fields in the database (s1, s2, s3, s4, s5, s6, s7) - these represent the sizes for each of the products, and contain unique entries. So the name of every input box on the order form comes from these fields.
So, my code on the order form to retrieve the products is:
$query=mysql_query("SELECT id, code, price, desc, s1, s2, s3, s4, s5, s6, s7 FROM merchandise WHERE cat = 1");
while(list($id, $code, $price, $desc, $s1, $s2, $s3, $s4, $s5, $s6, $s7) = mysql_fetch_row($query))
The page looks like this:
www.cvwebdesign.com/vafa_test/merchandise.php
With the results page (merchandise2.php), I use the same query above to return all the products. However I want to return the values of all the input fields (the names which came from the $s1, $s2... fields). I've tried all sorts of silly things like typing $$s1, hoping it would read it as $i30sXL (the unique name of the field, pulled from the mySQL database) and therefore return the value from the previous page what the user typed in, but it doesn't work.
Sorry if this sounds confusing, I'm finding it a bit hard to describe it. :o
Regards,
Cam