RE: [PHP] Session and validation
| From: | Stuart Felenstein | Date: | Sat, 30 Oct 2004 13:03:33 +0000 |
| Subject: | RE: [PHP] Session and validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200709@lists.php.net to get a copy of this message | ||
--- Graham Cossey <graham@cossey.plus.com> wrote:
> So, if this is the result of a form submission how
> are you getting the POST
> variables?
> How/where is $industry being set? I appears that you
> are assuming that
> variables are 'maintained' within a script, they are
> not. You have to
> remember that although you are running the same
> script it is not the same
> 'instance' of the script as a request/response has
> occurred. You MUST pass
> and retrieve SESSION/POST/GET variables if you
> intend to use them in your
> script.
>
Yes, I see your point about the instance changing. I
made the change and set session = post prior to the
redirect and it's working proper.
Now, I will need to go back and try my other scripts
to see if this holds up in them. I thought I already
tried , but a fresh start may help.
Stuart