[Phplib-users] Trying unsuccessfully to use "multiple" with type="text"
Brought to you by:
nhruby,
richardarcher
From: Rob <rm...@le...> - 2003-04-29 04:30:00
|
I'm looping through a database list with the following element: if ($debug) outputdebug("Perform.Display element: name, index $numrows, value = $row->name."); $f->add_element(array("type"=>"text", "name"=>"name", "multiple"=>1, "value"=>$row->name)); I should be adding the correct data in add_element because my debug statement shows what I expect. However, when I do this: for ($i=1;$i<=$numrows;$i++) { if ($debug) outputdebug("Render.Display element: $name, index $i."); $f->show_element("name"); } I only get the last thing I added. Previous elements don't show. My reading of the manual implies this should work. "For other elements that may be array valued (notably text elements) multiple calls to show_element will show successive values." What am I missing? (apologies in advance for stupid question) -Thanks, Rob |