I'll clarify a little. When we order bit's it will usually only be one or two items, so my form currently looks like this:
Delivery Address: __________________ (select box)
Ref Number: ______________________ (text box)
Customer Email: ___________________ (text box)
Item 1
Product: _________________________ (select box, e.g. Printer, PC, TFT)
Quantity: ________________________ (select box)
Type: Replacement __ Enhancement __ (radio buttons)
Old assets: _______________________ (text box)
Other Notes: ______________________ (text box)
Obviously the current problem is, what happens if i want to order 2xPrinter's as well as 2xPC's and 2xTFT's and 2xEthernet Cables? I'd have to submit that request and then complete the form again and again for the next items! Rubbish!
So my main question is, lets say my PHP currently does this:
Code:
echo $deladdress;
echo $refnumber;
echo $custemail;
echo $item1;
echo $quantity1;
echo $type1;
echo $oldassets1;
echo $notes;
How can i change it to, for example, loop through looking for (and echo'ing)other items like $item2, $quantity2, $type2, $oldassets2, $item3, $quantity3...etc...?