i am lost. i have a page that has a form that sends to a gateway. i have a an amount pre defined in an input field and then i have a switch include where the user can add a golfer registration to their page and i want the cost of the added golfer to be added to the x_Amount in the input field
$content=$_GET['content'];
if (empty($content)) { $content='none'; }
switch ($content) {
case "none":
include ('blank.php');
break;
case "oneplayer":
include ('onep.php');
break;
case "twoplayer":
include ('twop.php');
break;
case "threeplayer":
include ('threep.php');
break;
case "fourplayer":
include ('fourp.php');
break;
Other than the lack of a question, there is an obvious error:
$x_Amount == x_Amount += 125.00;
I assume should be:
$x_Amount += 125;
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
i appologize for the erratic method of forming my question. let me start over.
i have a page with an input that has a value of 50.00 and an id/name of x_amount. then on another page, that is going to be included to the static document, i would like to add to the variable x_amount (which is set to 50.00) 125.00.
In the end i will have four of these documents with different amounts and whenever they are included i want the value of x_amount to change.
if this still does not make sense here is slim'd down version of my code.
$content=$_GET['content'];
if (empty($content)) { $content='none'; }
switch ($content) {
case "none":
include ('blank.php');
break;
case "oneplayer":
include ('onep.php');
break;
case "twoplayer":
include ('twop.php');
break;
case "threeplayer":
include ('threep.php');
break;
case "fourplayer":
include ('fourp.php');
break;
NuSphere PhpED 5.0
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.0
(a popular PHP IDE) and
NuCoder 1.4
(a PHP Encoding Utility), read up on all the details.