Hi, I'm having a problem. I'm doing an Invoice system. So basically the user can enter the Item name, cost, quantity and total will be auto calc using javascript.
Currently, I'm adding a iteration behind each input to differentiate them. E.g.
<input type ="text" name = "Item<?=$i?>"/>
$i is an iteration using for loop.
My problem is, how to process it at the php side?
$itemName = $_POST['Item'];
I can't possibly hardcode it for the name inside post to be $POST['Item1'], $POST['Item2'], $_POST['Item3']....
If there are more than 10 items, it's too long. Any help? 