RE: [PHP-WIN] Global Variable Issues

From: Date: Sat, 15 Mar 2003 01:56:35 +0000
Subject: RE: [PHP-WIN] Global Variable Issues
Groups: php.windows 
Request: Send a blank email to php-windows+get-19013@lists.php.net to get a copy of this message
For the $status variable, sessions might help in passing the data along pages. -----Original Message----- From: Cam [mailto:ccrews@andrew.cmu.edu] Sent: Saturday, March 15, 2003 12:10 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Global Variable Issues Through past releases of PHP, I've developed with global variables on. These days it's becoming the trend, for security & asthetics purposes, to turn global variables off... Let's say I have a $status variable that changes depending upon the user's actions on the previous page and displays a message... Is there a way to propagate this variable through pages without 1) declaring it as a global, 2) writing it to a cookie, 3) passing it through the URL or 4) passing it through a form w/ POST? 1-globals are now off 2-cookie writing is impracical & no desire to store 1 time information client side 3-displaying the status message in the URL (or a status id) would look unprofessional and allow for user manipulation of the message they see by editing the URL string 4-not all my site's page transitions occur through forms, so I see no way to use $_POST every time I appreciate any suggestions & hearing your thoughts, Cam -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#19013) next »