Posted by sumeet on 09/07/05 13:02
mark wrote:
> index.php?myvar=cheese
>
> if I ehco($myvar) it will display 'cheese',
>
> index.php?myvar=%22cheese%22
>
> if I echo($myvar) it will display '\"cheese\"' with escaped quotes.
>
> How can I remove the quote escapes if %22 is present value? I want the
> second example to display just like the first, whether quotes are present or
> not?
>
>
you can use urldecode() and htmlentities()...
like
$myvar = urldecode($myvar);
u can also use htmlentities(urldecode($myvar)); for correct html code.
sumeet
Navigation:
[Reply to this message]
|