|
Posted by Rik Wasmus on 01/23/08 11:50
On Wed, 23 Jan 2008 12:50:01 +0100, Rik Wasmus =
<luiheidsgoeroe@hotmail.com> wrote:
> On Wed, 23 Jan 2008 12:42:07 +0100, jodleren <sonnich@hot.ee> wrote:
>
>> Hi!
>>
>> I just realised a problem in a system I am doing.
>> I pass data on in a hidden and a text input, of course with
>> value=3D"whatever"
>> The problem happens with
>> value=3D"whatever is there are " one more?"
>>
>> How have people solved this?
>
> htmlspecialchars($string, ENT_QUOTES);
BTW, if you're just learning this now: be sure you're not vulnerable to =
=
XSS attacks!
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|