Ok I have a form separated into 4 different php pages.
On page 1, user fills in 3 fields called "Title", "Topic", "Presentation_Type". Once he clicks on continue, there is a self validation of the fields. If everything is ok, then it's redirected to the second page and so on for the other pages.
Here is part of the code:
if ($_POST['process'] == 1) { $results=check();
if ($results['Title']!='') {
session_start();
$SESSION['POST_VARS'] = base64_encode(serialize($POST));session_write_close();
header("location: abstract_page_2.php");
exit();
}
}
Now on my second page 'abstract_page_2.php' my code starts with
session_start();
$POST = unserialize(base64_decode($SESSION['POST_VARS']));
If I add the following line:
echo stripslashes($_POST['Title']);
it outputs the entered title properly.
Now If I want to redirect this value to a temporary variable like this
$Entered_Title = $_POST['Title']);
$Entered_Title will be empty.
Now I'm thinking that this might be an unserialize problem...What do you think? 😕 Please help!