|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. Jeff |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
..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 |
|
![]() |
| Outils de la discussion | |
|
|