[Phplib-users] oohforms - Any one use multiple with type=text successfully?
Brought to you by:
nhruby,
richardarcher
|
From: Rob <rm...@le...> - 2003-05-01 16:13:27
|
Hi,
I still haven't figured out how to make this work. I've traced through the
code and I think there's an "ob" array member that never gets set. I'm
thinking it needs to be set for this to work.
If anyone can show me an example of text & multiple in the same page that
set and then display values, that might help me uncover the problem of how
it is supposed to work.
-Thanks, Rob
Previous example:
Test code:
<?php
error_reporting (E_ERROR | E_WARNING | E_PARSE);
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();
?>
HTML output (is):
<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>
HTML output (should be):
<form name='' method='POST' action='/p/testmulti.php' target='_self'>
<input name='textbox[]' value="first 1111" type='text'>
<input name='textbox[]' value="second 2222" type='text'>
</form>
|