Posted by sumeet on 09/07/05 13:03
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 echo urldecode($myvar);
or echo htmlentities(urldecode($myvar)); // correct html code
sumeet shroff
Navigation:
[Reply to this message]
|