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

Posted by Leif Gregory on 02/25/05 20:00

Hello Jay,

Thursday, February 24, 2005, 8:39:16 AM, you wrote:

J> I have messed with this for a couple of days and cant get it right.
J> Maybe I need sleep :-)

J> The question is, how would I take add each of these numbers (10+5+25)?

for ($i = 1; $i <= $sendnum; $i++)
{
$qty = $_POST['qty'.$i];
$tot += $qty;
echo $qty . ' --- Total so far is: ' . $tot . '<br />';
}


--
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.2.3 Rush under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

 

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

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