I am trying to set up a do while command for values that will be sent to my site with HTTP POST.
The post values start at 1 and then increase if there are more and I am wondering how to properly add increments to read the post values.
For example:
$i = 1;
$item.$i = $_POST['item_name'.'$i'];
or
$qty.$i = $_POST['quantity.$i'];
$i++;
Would either of those work? If so which one, if not how do I properly add increments to a POST value that I cannot edit?
The post values start at 1 and then increase if there are more and I am wondering how to properly add increments to read the post values.
For example:
$i = 1;
$item.$i = $_POST['item_name'.'$i'];
or
$qty.$i = $_POST['quantity.$i'];
$i++;
Would either of those work? If so which one, if not how do I properly add increments to a POST value that I cannot edit?