Jump to content

Showing page user is currently on


runnerjp

Recommended Posts

Hey guys,

 

When my users are on the profile page i want to be able to record the users profile name they are on.

 

Now i can do this via the get method.  but the issue is that i have included the commetn script so when i use $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; to get the url its showin it as the included one...so where it should be members/profilename  $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];echo $url; shows it as http://www.runningprofiles.com/members/update_ajax.php!

 

This means im unable to grab the users.. how can i get around this?

Link to comment
https://forums.phpfreaks.com/topic/203768-showing-page-user-is-currently-on/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.