Hello,
I'm trying to find a way to extract the original querystring (admin.issuesIndex) from a page's url, rather than the one being appended to it once the page is reloaded (?from=25) in the example below.
http://www.website.com/index.php/admin. ... ex?from=25
I've tried $_SERVER['PHP_SELF'] but it returns: index.php
While $_SERVER["REQUEST_URI"] returns: ?from=25
I need to return: admin.issuesIndex.htm
Is there an easy way to do this?
Thanks,
John
Help with _SERVER["xxx"] vars
Moderator: General Moderators
You should use $_SERVER['PATH_TRANSLATED']:
Code: Select all
$your_page = strrchr($_SERVER['PATH_TRANSLATED'], "/");