You are here: Re: help with adding « PHP « IT news, forums, messages
Re: help with adding

Posted by pete M on 09/26/55 11:09

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 . '<br />';
$total += $qty;
>
> }
>
>
>
> The question is, how would I take add each of these numbers (10+5+25)?
>
>
>
> Any help is appreciated.
>
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация