what is the previous page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amao
Forum Newbie
Posts: 21
Joined: Sun May 10, 2009 5:13 am

what is the previous page

Post by amao »

hi all

I need to know if the previous belong to specific URL

ex: my URL is http://www.myURL.com

and the previous page is http://www.myurl.com/test

the current page is http://www.myurl.com/current

so all I need to Test the previose page belong to http://www.myurl.com
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

Re: what is the previous page

Post by jazz090 »

use:

Code: Select all

$_SERVER['HTTP_REFERER']
Post Reply