SUN Jiangong
SUN Jiangong

Reputation: 5312

How to use urlencode to handle two question marks in url in php

I have 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'?>

Upvotes: 1

Views: 1770

Answers (1)

Gabriel Sosa
Gabriel Sosa

Reputation: 7956

use urlencode

edit

try rawurlencode

Upvotes: 1

Related Questions