I've been asked to build a system where you select the Checkboxes for lanes/Times of a bowling alley.
Once selected, you click Submit and it passes you over to the next page where you are shown the lanes you booked, and then taken to PayPal to pay the fee.
Each lane is always the same price. So a 'count' of selections can get the cost easy: 2 X £5 = Charges £10.
But what I cannot work out is the best way to pass these box's values thru. Do I do it with 48 (that's the maximum variant of selections available): $l1_1030=$_POST['l1_1030'];??
And then on the next page do a session:
Code: Select all
if(isset($_POST['l1_1030']))
{
$l1_1030 = $_POST['l1_1030'];
$_SESSION['l1_1030']=$l1_1030;
} else { $l1_1030=$_SESSION['l1_1030'];
}
And at the foot of the final paid page, do this:
unset($_SESSION['$l1_1100']);
(48 times!!!)
??
This looks like nightmare code to run and manage.