How to find out what page I am on?
Posted: Fri Jul 28, 2006 7:27 pm
Hi guys,
Sorry if the subject/title is a little vague...
Here's my question:
If I want to find out what page I am on and the page uses "=" as in http://www.mysite.com/index.php?user=512
then I can say:
but how do I find what page I am on, based on the address only (without "?user=" part) as in http://www.mysite.com/view/photos.php
viewing page: photos
example two: http://www.mysite.com/interact/chat.php
viewing page: chat
see what I am saying?
Bascially, with the above format, I CANNOT use isset.... so I cannot find out what page I am on.
Is there any way to do this BESIDES using cookies?
(any php method?)
thanks for your help guys,
-Matt
Sorry if the subject/title is a little vague...
Here's my question:
If I want to find out what page I am on and the page uses "=" as in http://www.mysite.com/index.php?user=512
then I can say:
Code: Select all
if(isset(user))
{
echo "user id is $user";
}viewing page: photos
example two: http://www.mysite.com/interact/chat.php
viewing page: chat
see what I am saying?
Bascially, with the above format, I CANNOT use isset.... so I cannot find out what page I am on.
Is there any way to do this BESIDES using cookies?
(any php method?)
thanks for your help guys,
-Matt