|
Posted by Michael Fesser on June 21, 2008, 11:50 am
Please log in for more thread options
.oO(Jeff)
> Lets say we have double quotes in a string and we want to set a
>textfield to that value:
>
>$string = ' my "string"';
>
><input type="text" value="$string">
>
>The double quotes will wreck havoc.
>
> I thought of this:
>
>$string=addcslashes($string'],'"');
>
> But that didn't work. There must be a php function for doing this.
htmlspecialchars()
Micha
|