Here is the url I am working with:
Code: Select all
http://localhost/uilogin.php?authID=1&uid=drgnjucr&url=secured.phpI was trying something like this:
Code: Select all
$pageName = rtrim($_SERVERї'QUERY_STRING'],'url=');Thanks!
Mike
Moderator: General Moderators
Code: Select all
http://localhost/uilogin.php?authID=1&uid=drgnjucr&url=secured.phpCode: Select all
$pageName = rtrim($_SERVERї'QUERY_STRING'],'url=');Code: Select all
$pageName = $_REQUESTї'url'];
echo "The pagename is: $pageName";Code: Select all
$qs = $_SERVERї'QUERY_STRING'];
if (strpos($qs, 'url=') !== false) {
$_SESSIONї'pageName'] = $qs;
}