Re: Are variables persistent?
| From: | André Cerqueira | Date: | Tue, 17 Feb 2004 03:52:31 +0000 |
| Subject: | Re: Are variables persistent? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177900@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Furman wrote:
When I refresh a script using a form, it goes through & resets all my custom Constants but presumably all my variables should still hold their values from the last run, right? THere are no functions involved.wrong
What would cause a variable or even a $POST[] value to be erased?the script exiting thats what happens when it finishes running if you want persistency, try session http://www.php.net/session -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAMZADaxdA/5C8vH8RAjaUAJwP/auFvfSc4QPfcSQkRAJJpqPaRgCfVtEz KFZglAix8zxhnOwu0H1xdnE= =DoaG -----END PGP SIGNATURE-----