Maybe not really a challenge for most but being a newbie, this one is sort of tricky.
I am running sessions to move variables from one page to another.
<?php
session_start();
$saved =$_SESSION['get_id'];
further on in the script, I echo these variables:
<?php echo "$saved";?>
My question (which probably involves an if statement):
If $saved has a value (in other words, in the previous form, if the this field contains text), I would like to assign a number to it, say 35. I would then assign numbers to the other passed variables and at the bottom of the script I would like to have a grand total where these numbers are added if they are true. For example, if player1 and player2 are entered (and each player is 35), the grand total should be 70.
I really would appreciate your help. I am in the final stages of this form for our soccer league registration (www.essexredevelopment.com/mtlx.php). The scripts abover are going to be posted on the gotopay.php page.
Marlon