I'm trying to turn $_POST into $_SESSION. I'm creating an Inspection form which once submitted will echo the form and display another form. This will occur 3x allowing 3 different inspection times.
If I use $_POST, the form data will appear however display once another form is submitted hence why I want to create a session. I've done some research however I cannot seem to get it. I will put example code below.
Assistance would be greatly appreciated.
<input type="text" name="date"/>
<input type="text" name="time"/></form>
$_SESSION['date'] = $_POST['date'];
$_SESSION['time'] = $_POST['time'];
echo 'Inspection Time 1:, ', $_SESSION['date'], $_SESSION['time']; // Won't display form here as is just example