I'm just having a look at sessions from scratch to see if I can use them to pass data from one page to another.
First I created two basic pages - session_form and session_results :
session_form :
<form action="sessionresults.php" method="POST">
ID <input type="text" name="Photo_ID" />
Title <input type="text" name="Title" />
<input type="submit" />
</form>
session_results :
<?php
session_start ();
$_SESSION['Photo_ID']=$_POST['Photo_ID'];
$_SESSION['Title']=$_POST['Title'];
?>
<?php echo $_SESSION['Photo_ID']; ?>
<?php echo $_SESSION['Title']; ?>
This works fine and displays the entered data.
I then tried changing the form action in the first page to session_middle, and created a middle page to test if I could get it to pass through to the results page :
<?php
session_start ();
$_SESSION['Photo_ID']=$_POST['Photo_ID'];
$_SESSION['Title']=$_POST['Title'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php echo $_SESSION['Photo_ID']; ?>
<?php echo $_SESSION['Title']; ?><br>
<a href="sessionresults.php">goto next section</a>
</body>
</html>
This however is drawing a blank - what am I missing here?