Re: Initial Value for Input Box
| From: | Eugene Lee | Date: | Mon, 29 Sep 2003 22:05:21 +0000 |
| Subject: | Re: Initial Value for Input Box | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164315@lists.php.net to get a copy of this message | ||
On Mon, Sep 29, 2003 at 05:46:15PM -0400, Matt Palermo wrote:
:
: I have a form that a user can fill out. In the text input field I allow
: them to insert HTML tags with their input data. They can then submit the
: form for processing. The problem is that later on when they go to edit
: their inputs (I initialize the text input with their previously submitted
: input) and they have HTML tags with double quotes, the it will only put
: characters up to the first double quote inside the input box and the rest
: will go outside of it. I would like the text box to contain everything they
: previously submitted to be displayed there. Does anyone know of an easy way
: to allow the double quotes to be initially inserted into the input box?
Look at htmlentities() or htmlspecialchars().