Re: Problems with quotes in URL
| From: | Marek Kilimajer | Date: | Wed, 18 Jun 2003 09:34:21 +0000 |
| Subject: | Re: Problems with quotes in URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151942@lists.php.net to get a copy of this message | ||
<?PHP if ($_GET['x']=='') {$i='whatever "Whatever"'; echo '<a href="get.php?x='.urlencode($i).'">link</a>'; } else echo 'x is '.urldecode($_GET['x']);Incomming GET values are urldecoded automaticaly, no need to do this.
?> and the url looks like:http://www.XXXXX.nl/get.php?x=whatever+%22Whatever%22