php calculate


Posted on 16th Feb 2014 07:03 pm by admin

this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNumberAdults=$_POST['TotalNumberAdults'];
$TotalNumberChildren=$_POST['TotalNumberChildren'];
$TotalNumber=($TotalNumberAdults + $TotalNumberChildren);

?><?php echo sprintf($TotalNumber);?>
<input name="TotalNumber" type="hidden" value="<?php echo sprintf($TotalNumber);?>" size="7">

No comments posted yet

Your Answer:

Login to answer
254 Like 25 Dislike
Previous forums Next forums
Other forums

??????????? ?????? ????? , ??????????? ?????? ??? ?????? ??????? , ?????? ???????? ?????? ??? ?????? ??????? Online - JJsHouse ?????????
[b][url=http://ru.cover4weddings.co/]Купить Свадебные платья[/url][/b] [b][url=

IWCのIngenieur :スイスデザイナー販売のためのレプリカの腕時計
[b][url=http://jp.iwcwatchesoutlet.top/]スポット偽IWCの時計[/url]

Display Database
I need to create a shopping cart. I found this code online: http://conceptlogic.com/jcart/
Unfort

Replica Breguet klokker
[b][url=http://www.luxurywatchlove.co/no/]swiss kopi klokker aaa +[/url][/b] [b][url=http://www.luxu

Gants Spyder femmes de ski: Spyder Vestes , Spyder Outlet , Spyder Vestes Outlet Vente
[b][url=http://www.spyder-jacket.com/fr/spyder-goggles-c-1.html]spyder lunettes de ski[/url][/b] [b]

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS