playaz Posted August 4, 2009 Share Posted August 4, 2009 Hi guys, This is probably really simple and just thought i'd ask one of the experts on here.. I have a value from a querystring like this.. site.com?year=9%2F2005%2B When I echo this it formats it like this.. 9/2005 How can I stop it formatting the string so it looks exactly as it does in the querystring URL? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/168781-solved-echo-non-formatted-get-string/ Share on other sites More sharing options...
playaz Posted August 4, 2009 Author Share Posted August 4, 2009 Ok I must have not had enough sleep.. Just in case someone has this problem simply use the PHP function urlencode($_GET['param']) Works fine now! :-) Link to comment https://forums.phpfreaks.com/topic/168781-solved-echo-non-formatted-get-string/#findComment-890472 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.