Search parameter problem!

admin

Administrator
Staff member
The parameter(string) has changed. the scripts are below:
$str="name like 'newuser'";
$str=urlencode($str);
echo "<a href=http://www.phpbuilder.com/board/archive/index.php/search.php?str=$str>Search</a>";

After click the link, the string parameter for search is not the same as what it is before,
it changes to: name like \'newusr\' INSTEAD of : name like 'newuser' . SO the search failed because the change of the string.

Would you please tell me how to pass the parameter(string) correctly?
Thanks!
 
Back
Top