$_SESSION['details_captured'] = "yes";

single =, and there is no need to "reset" the session variable.

[EMAIL PROTECTED] wrote:
Hi all...
I have a form that captures data, before then showing a few download links...
However, If the user is in our office, I want to bypass the form...
so at the very top of my page, I've put this...
(details_captured is my variable I use on the form as a hidden field, to confirm that the form has been submitted)


if ($REMOTE_ADDR == '111.222.333.444') {
        $_SESSION['details_captured'] == FALSE;
        $_SESSION['details_captured'] == "yes";
}

reset the session variable:
$_SESSION['details_captured'] == FALSE;

Re-asign it to yes:
$_SESSION['details_captured'] == "yes";

I'm new to sessions, but to me, this should work.. yet it doesn't..?
(Naturally, I've used an easy to read IP for this example)

*********************************************************************
The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.
***********************************************************************




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to