Correct.... you can add the data as a URL parameter.  Or, you could set a
cookie and use sessions.

-----Original Message-----

Let's say .....

Page 1 -----
$data = "Yes!";

header("Location: test1.php");

Page 2 -----
$data = $GLOBALS['data'];

echo $data;


This one does not work!  Does this ever work at all or do I need to do the
"header("Location: test1.php?data=Yes!");" into the script?

PHP General Mailing List (
To unsubscribe, visit:
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to