passing string through get

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
bytte
Forum Commoner
Posts: 75
Joined: Sun Nov 23, 2003 8:20 am
Location: Belgium

passing string through get

Post by bytte »

If I pass "the string" through GET to another php page, it gets displayed in the address bar as "the%20string".
The problem is that I need the string for my script on that page too, and it fails because of the "%20" thing (I guess).

What can I do about that?
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

you have to encode/decoe url

-> http://php.net/urldecode
Post Reply