You really don't have to put the index in a single dimension input array.
Just put
qty[]
And you'll get it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have messed with this for a couple of days and cant get it right. Maybe I
need sleep :-)
The code below is echoing the qty correctly (10, 5, 25)
for ($i = 1; $i <= $sendnum; $i++)
{
$qty = $_POST['qty'.$i];
echo $qty . '';
}
The question is, how would I take add each of th
Jay Fitzgerald wrote:
I have messed with this for a couple of days and cant get it right. Maybe I
need sleep :-)
The code below is echoing the qty correctly (10, 5, 25)
$total = 0;
for ($i = 1; $i <= $sendnum; $i++)
{
$qty = $_POST['qty'.$i];
echo $qty . '';
$total += $
3 matches
Mail list logo