server referer problem
Posted: Thu Feb 12, 2004 5:28 pm
hello,
i have a
PHP:
that is itself a link (<a href="$_SERVER.......</a>
thats perfect for when the URL is 1 word....however, when its 2 or more it doesnt add the % needed
http://www.site.com/name=my%name......the link goes to http://www.site.com/name=my (which is no good)
how do i tell add the % ???
thank you in advance
i have a
PHP:
Code: Select all
$_SERVER['HTTP_REFERER'];thats perfect for when the URL is 1 word....however, when its 2 or more it doesnt add the % needed
http://www.site.com/name=my%name......the link goes to http://www.site.com/name=my (which is no good)
how do i tell add the % ???
thank you in advance