|
Posted by J.O. Aho on 04/17/06 12:41
Ozz wrote:
> Hi Ehsan,
> What function can I use to check if (user is coming from specific
> page).
> I have done significant PHP programming but there are still mysteries.
> Could you please suggest a helpful resource.
You can use $_SERVER['HTTP_REFERER'] to get the url, but as more and more
people blocks this data (either tell web browser to not send this or the
firewall filters it out), it's not that sure it will work.
Another thing would be to add a <input type="hidden" name="page" value="b"> to
the form on page B and you check if there is a $_REQUEST['page'] that has been
set to the value 'b', if not, then the request came from page U.
//Aho
Other variables: http://www.php.net/manual/en/reserved.variables.php
Navigation:
[Reply to this message]
|