Hi Loïc !
I'm back from holiday and have read about 140 messages in
the list (ouch!).
> >Btw, what is this $fields_prev[] information for ?
>
> Let's say one of your field current value is `this is "my" vel`.
> To have it displayed and take into account as a value of a
> form field it has to rewritten to `this is & quot;my & quot; val`.
Why do you write '& quot;' and not '"' ? Is that inserted
space necessary ?
> Let's say that while altering the current record you do not
> modify this field (ie you modify only onther(s) fields), then the
> value passed by the form is `this is & quot;my & quot; val`
> and your field will be updated with this value.
> $fields_prev[] is only a way to ensure fields with special
> characters would be modified only if this is trully required
> by the user.
Really ? I mean if you have a form with <input name="foo" value=""">
and press submit, you'll get $foo='"' (modulo magic quotes of
course) in your script (and not $foo='"'), which should
not cause any problem...
I'd just like to understand a bit more. Maybe $fields_prev[]
solves problems that such a basic example may not show. Is
$fields_prev[] intended to handle only basic html special
chars ('<', '>', '"', '&'), or also other special chars ?
Benjamin