I have an order form, which gets the values from a sql database, and put each ID value in one table row as a name of a text field. Something like this:
<input name=bikini_01_size type=textfield>
<input name=bikini_01_color type=textfield>
<input name=bikini_01_qty type=textfield>
<input name=bikini_02_size type=textfield>
<input name=bikini_02_color type=textfield>
<input name=bikini_02_qty type=textfield>
and so on until the end of the table(from database). This works fine.
The question is, how can I submit the values of the textfield that the user entered to another php file (receipt.php), which does the order receipt, if I don't know how many I have? This is what I'm doing:
//receipt.php - Is supposed to get the values from a submited form
$dbq = mysql_query("Select * from bikinis where instock='yes'");
$numr = mysql_num_rows($dbq);
$email_message = "
Items Purchased:
";
$iv = 1;
while($iv <= $numr) {
$email_message .= "
Bikini $iv:
Size: $bikini".$iv."size
Color: $bikini".$iv."color
Qty: $bikini".$iv."qty
";
$iv++;
}
And what I get in the email is like:
Bikini 01:
Size: 01_size
Color: 01_color
Qty: 01_qty
Thanks a lot