Re: [PHP] Re: help with adding

2005-02-26 Thread Guillermo Rauch
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

[PHP] Re: help with adding

2005-02-26 Thread Jamie Alessio
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

[PHP] Re: help with adding

2005-02-26 Thread pete M
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 += $