[horde] Horde_Form_Type_enum

Christopher Troup mini at zaphod.homeunix.com
Mon Feb 21 11:18:58 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I'm trying to add a select box with specified titles and values. However
from what I can see from Horde/Forms.php there is no way of getting
something like <option value="315">This is an option</option>. It seems
to default to values counting 0,1,2,3,4...

Obviously I must be wrong, and there must be a way to specify values.
Here is code that I'm using.

//$com is an array of option titles
$form->addVariable('Edit Which Comment','com','enum',false,false,'',$com);

it seems like I should be able to do something like
$com[0][$i] = 'This is an option';
$com[1][$i] = 315;

Any help/suggestions?

Thanks in advance.

- --
Christopher Troup
http://zaphod.homeunix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1-cvs (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCGjQi9vsfLoZxqLoRAoS+AJ9gB0Z+a4jxT7DS/NXcQhP4pkH34wCfSYBX
VfzAqMkw0WmNrsRZ//x49AQ=
=lfdN
-----END PGP SIGNATURE-----



More information about the horde mailing list