Re: INPUT
| From: | Jochem Maas | Date: | Thu, 10 Aug 2006 18:26:54 +0000 |
| Subject: | Re: INPUT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240484@lists.php.net to get a copy of this message | ||
Warren Vail wrote:
> http://us3.php.net/manual/en/function.addslashes.php
adding a slash to a quote char that is part of an html tag's attribute's
value is not the correct way to encode the quote (actually it's not correct
anywhere in an html document) - although I wouldn't be surprised if it worked :-/
see: htmlentities() or htmlspecialchars()
>
> Good luck,
>
> Warren Vail
>
>
>> -----Original Message-----
>> From: João Cândido de Souza Neto [mailto:joao@curitibaonline.com.br]
>> Sent: Thursday, August 10, 2006 11:11 AM
>> To: php-general@lists.php.net
>> Subject: [PHP] INPUT
>>
>> Hi everyone,
>>
>> Excuse me by off-topic.
>>
>> I´ve been a little trouble in showing data in html form.
>>
>> e.g.: In a e-commerce my client have a "Sony 29" TV" that
>> when i put it in a input value, it seems just "Sony 29" it´s
>> caused by the quote in the data, someone knows how can i fix it?
>>
>> Thanks all.
>>
>>
>> --
>> João Cândido de Souza Neto
>> Curitiba Online
>> joao@curitibaonline.com.br
>> (41) 3324-2294 (41) 9985-6894
>> http://www.curitibaonline.com.br
>>
>> --
>> PHP General Mailing List (http://www.php.net/) To
>> unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>