Re: Initial Value for Input Box
| From: | Cristian Lavaque | Date: | Tue, 30 Sep 2003 07:08:33 +0000 |
| Subject: | Re: Initial Value for Input Box | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164343@lists.php.net to get a copy of this message | ||
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?
Please let
> me know.
>
> Thanks,
>
> Matt
Does the same problem occur with a textarea? Have you tried
escaping the double quotes?
Cristian