Re: A beginner´s question
| From: | Andrew Ballard | Date: | Mon, 05 Jan 2009 15:22:52 +0000 |
| Subject: | Re: A beginner´s question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285463@lists.php.net to get a copy of this message | ||
On Mon, Jan 5, 2009 at 10:50 AM, Eduardo <vareedu@gmail.com> wrote:
> Thanks, you all!
> I tried near all suggestions, and Vicente's worked with
> IE6
> Windows98SE
> EasyPHP
>
> Eduardo
>
>
> On 5 Jan 2009 at 4:36, Vicente wrote:
>
>> <textarea rows="5" name="tastes" cols="28"> <? echo
>> $tastes;?> </textarea>
>
>
>
Unless you have taken steps to ensure that the value of $tastes does
not include any HTML markup, you want to escape the value:
<textarea rows="5" name="tastes" cols="28"> <? echo
htmlspecialchars($tastes);?> </textarea>
Andrew