Re: Are variables persistent?
| From: | Paul Furman | Date: | Mon, 16 Feb 2004 22:01:21 +0000 |
| Subject: | Re: Are variables persistent? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177872@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip] $_REQUEST is the only way to go without getting into sessions? [/snip] Nope, $_REQUEST (as its name implies) contains variables that are part of the request process. If you refresh the form the $_REQUEST array will essentially be empty for those vraibles that would be passed from form to process.OK I'm confused. I want to set a variable with a form. How do I do that? I guess I need to put it in the url? I did a mail form & that worked by putting stuff in the $POST and when it refreshed to the same mail page, I grabbed the stuff back out of that (at least that's what I thought I was doing. Maybe I just put the new value in the url with the action property of the form and forget about the $POST part. I guess I don't know how that worked for the mail script.