xeonyk Posted June 6, 2007 Share Posted June 6, 2007 i have query string like this : http://localhost/temp/example2.php?id=O/UJ9YRxDw+du when i echo in my example2.php <? $id_1 = $_GET['id']; echo $id_1; ?> the result is : O/UJ9YRxDw du the plus character is replace by space character, why this happen and how to solve this problem? and which character can cause this problem Quote Link to comment https://forums.phpfreaks.com/topic/54418-problem-with-query-string/ Share on other sites More sharing options...
xeonyk Posted June 6, 2007 Author Share Posted June 6, 2007 i have solve my problem and i want to share this. if u want pass '+' plus character use rawurlencode('+') example echo "<a href =\"example2.php?id=".rawurlencode('+')."\"></a>" and in next page use $id = rawurldecode($id); hope this help Quote Link to comment https://forums.phpfreaks.com/topic/54418-problem-with-query-string/#findComment-269083 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.