I have never worked with sessions before so just need a bit of guidance. Some data from a form needs to be held whilst someone logs in. So I have got this far.
<?php
$_SESSION['tmp']['booking-form'] = array(
'GT_title' => $SEStitle,
'GT_actual_duration' => $SESactualduration,
'SEScalstartdate' => $calstartdate,
'GT_picture' => $picture,
'GT_total_duration' => $SEStotalduration,
'GT_total_dives' => $SEStotaldives,
'GT_total_price' => $SEStotalprice,
'GT_total_duration' => $SEStotalduration,
'GT_specifications' => $SESspecifications
);
?>
Three questions.
Where do I put this code as all the named fields in the array exist in a form towards the bottom of the page before the log in process begins.
Is that all the code I need or do I need to put something else somewhere else.
What do I do to call this session when the client has finished logging in and has been redirected to the booking area where I want this data to be called back up.