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
$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

Problem with shopcart code
Hello, I am having a bit of trouble being able to add a product to my shopcart. My mysql database i

watches outlet
[b][url=]watches outlet[/url][/b] | [b][url=]w

Дешевое TAG Heuer Часы Великобритания, TAG Heuer Carrera Твин Время
[b][url=]высокое качество

Inserting multiple records from single form
I've found a number of threads that deal with this issue, but I'm new to php and coding language so

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

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