It seems finish() doesn't write down all the hidden fields
when finishing up a form.
when using the form->ge("elementname") function, every
hidden field is submitted, but then finish does it again.
(kinda pointless, isn't it?) but it seems to be the only way to
actually be sure that all fields are written down.
if i go through the whole listing of items using
$form->ge($itemname); including the hidden fields, i
get a complete form
if i go through the whole listing WITHOUT the hidden fields,
and let $form->finish() do that for me, i get an incomplete set:
For some reason, the string with input fields gets cut off....
i have no idea why/how this is, as i cannot find any kind
of string limiter in the ooh_forms class related to this....
help?
Saryon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems finish() doesn't write down all the hidden fields
when finishing up a form.
when using the form->ge("elementname") function, every
hidden field is submitted, but then finish does it again.
(kinda pointless, isn't it?) but it seems to be the only way to
actually be sure that all fields are written down.
example:
foreach($fielddata as $key=>$data)
{
foreach($data as $vkey=>$value)
{
$item = array("name"=>"inputitem_$vkey",
"value"=>"$value",
"type"=>"text",
"extrahtml"=>" ");
$form->ae($item);
}
}
$item = array("name"=>"client_id",
"value"=>"$client_id",
"type"=>"hidden");
$form->ae($item);
$item = array("name"=>"departement_id",
"value"=>"$deptid",
"type"=>"hidden");
$form->ae($item);
if i go through the whole listing of items using
$form->ge($itemname); including the hidden fields, i
get a complete form
if i go through the whole listing WITHOUT the hidden fields,
and let $form->finish() do that for me, i get an incomplete set:
with:
.
.
.
<input type='hidden' name='client_id' value='4'><input
type='hidden' name='departement_id' value='5'><input type='hidden' name='item_id' value='242'>
.
.
.
without:
.
.
.
<input type='hidden' name='client_id' value='4'><input
type='hidden' name='departement_id' value='5'><input type='h
.
.
.
For some reason, the string with input fields gets cut off....
i have no idea why/how this is, as i cannot find any kind
of string limiter in the ooh_forms class related to this....
help?
Saryon