Jump to content

how to get current page url?


ivytony

Recommended Posts

say my currentpage url is: http://www.domain.com/click.php?page=10&action=view

 

I am wondering how to get this full url or the page name (click.php) with the variables page and action.

 

I've tried '$_SERVER["PHP_SELF"]', but it only gives me a page name (/clic.php) without any variables passed.

 

anyone knows ?

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/95548-how-to-get-current-page-url/
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.