Re: Problems with quotes in URL
| From: | Chris Hayes | Date: | Wed, 18 Jun 2003 12:39:26 +0000 |
| Subject: | Re: Problems with quotes in URL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151970@lists.php.net to get a copy of this message | ||
(cutted the part about sending a var as get)
page.php?my_var=whatever+whatever++%5C%22whatever+whatever%5C%22&next_var=blabla ok so here the variable is still complete, including slashes and quotes.
And now, on page.php If I do an echo stripslashes($my_var); I get exactly this: whatever whatever \i get better results with echo stripslashes(urldecode($_GET['my_var'])); (or in your version echo stripslashes(urldecode($my_var)); ) this even though Marek said "Incomming GET values are urldecoded automaticaly, no need to do this." (this=urldecode)