addInput(new Form_Input( 'usernamefld', 'Username', 'text', $pconfig['usernamefld'] )); $pwd = new Form_Input( 'passwordfld', 'Password', 'text', $pconfig['passwordfld'] ); if (isset($id) && $a_secret[$id]) { $pwd->setHelp('To change the users password, enter it here.'); } $section->addPassword($pwd); $section->addInput(new Form_IpAddress( 'ip', 'IP Address', $pconfig['ip'] ))->setHelp('To assign the user a specific IP address, enter it here.'); $form->add($section); if (isset($id) && $a_secret[$id]) { $form->addGlobal(new Form_Input( 'id', null, 'hidden', $i )); } print($form); include("foot.inc");