php calculate


Posted on 16th Feb 2014 01:33 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

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]

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Help with ORDER BY
Hello. I would like to order by ascending States, then Cities, then Gyms in the following code, but

Replica Patek Damenuhren : Replica Patek Philippe Uhren , patekphillipeuk.top
[b][url=http://www.patekphillipeuk.top/de/replica-patek-herrenuhren-c-1.html]Replik Patek Herrenuhre

Pre-Fill out a PHP form...??
This is for work actually (geek squad). We have to fill out this online php form at work over and ov

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