They do have a value, its part of a form, I have..
<form action="'. $PHP_SELF .'" name="payment" method="POST">
<input type="text" name="day" value="'. $day .'" size="20" maxlength="3">
<input type="text" name="month" value="'. $month .'" size="20" maxlength="10">
<input type="text" name="year" value="'. $year .'" size="20" maxlength="4">
<input type="text" name="requiredemail" value="'. $requiredemail .'" size="20" maxlength="50">
<input type="SUBMIT" name="submit" value="Submit Details">
</form>
I press submit, and it should run a script called book_room
if ($submit) {
$worked=book_room($day,$month,$year,$requiredemail};
}
If this then works $worked is true and it registers the session, and goes to the confirm page.
if ($worked){
session_register("day","month","year","requiredemail");
Header("Location: confirm.php");
}
I know $worked is being returned true as its going to confirm.php, however the sessions are not registering.
Cheers
Ben