[Phplib-users] Problem with automated hidden field adding in OOH forms
Brought to you by:
nhruby,
richardarcher
From: Benjamin H. <ho...@eu...> - 2003-04-29 09:16:55
|
I had a problem with the automated hidden fields adding when i add the = same hidden element several times. =20 I did this because the value has changed several times. =20 Then the hidden field was printed out several times (as often as I add = it to the form object) =20 the problem lay=B4s in the add_element function =20 when the name of the hidden object is added to the $this->hidden array = which will be used when $f->get_finish is called to print out all = hidden fields. =20 due to the multiple adding $his->hidden has the name of the hidden = field twice or more. and due to this will be printed out several times. =20 when I use an JS to get a value from this field an error accours... =20 a simple in_array search if the hidden object name is in the = $this->hidden array and adding it only if it=B4s not in it should be aware of this problem. =20 =20 best regards Benjamin =20 |