Quote:
Originally Posted by Oatley
However, on the page I am re-directing to I also want to be able to access
echo the $_POST['name'].
Is it possible without passing the name in the URL string, or is there a way
|
Contrary to sunfighter, yes. Sessions.
A session is basically a bit of memory you can read and write which php automatically saves and reads from a file on the servers hard disk. It is unique to each user and identified by a cookie.
At the top of your script BEFORE any output such as html or print statements AND in every script that use the $_SESSION array:
session_start();
Then after:
$_SESSION['name'] = $_POST['name'];
Likewise to access it in your next script:
session_start();
$Name = $_SESSION['name'];
I'm not sure why sunfighter thinks this isn't possible..