server referer problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
grudz
Forum Commoner
Posts: 68
Joined: Thu Dec 04, 2003 12:52 pm

server referer problem

Post by grudz »

hello,

i have a

PHP:

Code: Select all

$_SERVER['HTTP_REFERER'];
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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Post Reply