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 Quote 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! :-) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.