[Phplib-users] show_element doesn't present value?
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2001-12-12 03:46:36
|
I'm trying to use phplib-7.2d ooh forms for the first time... $f = new form; $f->add_element(array( 'type' => 'text', 'name' => 'realname', 'size' => 12, 'maxlength' => 16, ) ); $f->show_element('realname','xxxx'); This code generates: <input name='realname' value="" type='text' maxlength='16' size='12'> Why don't I get value="xxxx"? I want to create a page to maintain a database table. I expect that I create my form object once with an element for each field; then loop through my data, producing a form for each row? Is this approach wrong? Frank |