What is the recommended way to create self referring URLs on these pages.
This page takes arguments and I need to create links that will refer to the page
itself. In the example below, how can I create $SName from the variables within
PHP Direct-Eval?
$a. = '<a href="$SName?cm=pvideo">Video</a>';
Thank you!
Rick
This works well.
Code:
function FindSelf ()
{
$Path = $_SERVER['REQUEST_URI'];
$SName = substr($Path, 0, strpos($Path, "&"));
if ($SName === "") $SName = $Path;
return $SName;
}