Posted by Chris B on 06/10/05 01:27
Jim S. wrote:
> is there a php function that can take the URL in the address (with the
> values added) and append whatever to it?
> i know there is a $_SERVER['PHP_SELF'] but it does take the URL without the
> added variables. help please
> thanks
> Jim
$newurl = $_SERVER['PHP_SELF'];
if ($_SERVER['QUERY_STRING']) $newurl .= "?" . $_SERVER['QUERY_STRING'];
$_SERVER['QUERY_STRING'] holds the v=1&c=2&ian=1632 etc. but you need to
put the ? in manually as I did
Navigation:
[Reply to this message]
|