tags:

views:

193

answers:

1

Hello everyone,

I appreciate for your time. I have searched a lot and tried to understand and use urlencode, but the problem can't be solved.

The code is: <?php print 'index.php/?page=search?query='.quote_replace(addmarks($search_results['did_you_mean'])).'&search=1'?>.

Thanks a lot for your help.

+1  A: 

use urlencode

edit

try rawurlencode

Gabriel Sosa
@gabriel, It seems like urlencode can't handle question mark "?".
garcon1986