is this code compatible with version 4.0.6... it WILL not work..... try to enter a name on page 1... goes to page 2.. does this.. and wont echo out the name.. ijust get a blank space...
i got this code from a tutorial, so i know it is correct.... can someone help me change this so it will work? i have no clue.. i have tried $http_session_vars and it wont work either...
<?php
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
echo "<strong>Step 2 - Register Session </strong><br />";
// Get the user's input from the form
$name = $_POST['name'];
// Create a new Session Value
session_register('name');
// Register the input with the value
$_SESSION['name'] = $name;
// Display the sssion information:
?>
Welcome to my website <strong><? echo $_SESSION['name']; ?></strong>!<br />
Let's see what happens on the <a href="page3.php">next page.</a><br /><br />