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'];
Did you know?Explore Trending and Topic pages for more stories like this.
$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

An odd assignment statement. Can someone explain this assignment to me?
What purpose is served by the bit of code between the two equal signs in the $installurl set? Is th

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

[Need Help] php timing issues
I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorad

Print out contents of to Excel
I have got this script that gathers all the data that I need but I need it to send it to excel inste

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

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



Play Free Quiz and Win Cash