Re: general question...
| From: | Tyler Longren | Date: | Mon, 04 Feb 2002 20:25:00 +0000 |
| Subject: | Re: general question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83456@lists.php.net to get a copy of this message | ||
if (eregi("page_user_has_to_come_from",$HTTP_REFERER) != "") {
print "You didn't come from the right page, please go back.";
}
else {
print "Congrats, you came from the right page!";
}
Tyler
----- Original Message -----
From: "jas" <jlgerfen@hotmail.com>
To: <php-general@lists.php.net>
Sent: Wednesday, January 30, 2002 2:32 AM
Subject: [PHP] general question...
> Using php3 is there a way to have a page only be access if the user is
> coming from another page? I don't quite know how to word what I am
thinking
> but for instance...
> Form <-- page that contains a form to submit an email address to a mailing
> list
> Confirm <-- page that confirms the users email address
> Submit <-- page that connects to database and submits users email address
>
> What I want to do is have users not be able to access the submit page
unless
> they are refered from the confirm page... Using php is this possible? And
> if so could someone point out somewhere that has more info so I may begin
> incorporating this into my scripts.
> Thanks in advance...
> Jas
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>