[Phplib-users] RE: Trying unsuccessfully to use "multiple" with type="text"
Brought to you by:
nhruby,
richardarcher
From: Rob <rm...@le...> - 2003-04-29 04:56:57
|
Ok...sorry to clog up the list but here's a short and full test. It only displays the last thing added. This test code with html output: <?php error_reporting (E_ERROR | E_WARNING | E_PARSE); //partial reporting only with oohforms require("oohforms.inc"); $f = new form; $f->add_element(array("type"=>"text", "name"=>"textbox", "value"=>"first 1111", "multiple"=>1)); $f->add_element(array("type"=>"text", "name"=>"textbox", "value"=>"second 2222", "multiple"=>1)); $f->start(); $f->show_element("textbox"); $f->show_element("textbox"); $f->finish(); ?> <form name='' method='POST' action='/p/testmulti.php' target='_self'> <input name='textbox[]' value="second 2222" type='text'> <input name='textbox[]' value="second 2222" type='text'> </form> |