I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of doing this but I think my brain is having a momentary lapse...
I have these variables:
$eventid = "1"; $age = "15";
Is there a way to pass these variables to the next page so I can continue using them without doing something like this:
<A HREF="test.php?eventid=1&age=15">
I would rather not have the variables be seen or known to the end user for security reasons because they could change them in the URL. I know it has something to do with $_GET and $_POST because I do have register_globals set to OFF in my php file and I do not want to turn them on....
If you want to truly keep them away from the "client" then you need to use sessions. Only the session ID is passed in a cookie or URL and your data remains on the server. Using GET, POST, or COOKIE will allow the user to edit this data.
If the user does not allow cookies, then you must pass the SESSION ID in every URL that you want the session to persist.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php