
December 5th, 1999, 09:37 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Ooops, I made a mistake. If a " exists in $test, then the value will not parse right as HTML will interpret that " as the closing " of value.
You need to do one more operation:
<input type="text" name="test" value="<? echo htmlspecialchars(stripslashes($test)) ?>">
htmlspecialchars() converts &,",<,> to &,",>,< respectively so it will display properly.
|