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 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 Link to comment https://forums.phpfreaks.com/topic/54418-problem-with-query-string/#findComment-269083 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.