[Phplib-users] oohforms, default setting in multiple select box
Brought to you by:
nhruby,
richardarcher
|
From: Peter T. <pte...@te...> - 2002-04-11 22:00:50
|
Hi folks,
I' want to tell oohforms to display one of values in a multiple select box
as the default.
In plain HTML:
SELECT ID=privbox NAME=box[] SIZE=3 MULTIPLE>
<OPTION VALUE='admin'>admin</OPTION>
<OPTION VALUE='editor' SELECTED>editor</OPTION>
<OPTION VALUE='user'>user</OPTION></SELECT>
In this case 'editor' will be highlighted and accepted as default value.
How can achieve this with oohforms?
I have tried to use "value" in add_element and $value as second parameter
in show_element but that doesn't seem to have the effect I want.
Documentation doesn't clarify much.
Any ideas are welcome
Cheers,
Peter
|