On Tue, Nov 11, 2008 at 2:12 AM, brucewhealton
<[EMAIL PROTECTED]>wrote:

> First question, if I wanted to let the user select more than one item,
> what control would I use instead of the ComboBox that allows selection
> of only one item?
>

I'd use a list instead of a comboBox.

Next, taking the ComboBox as an example, I could use help figuring out
> how to pass the item selected by the user to the Object named obj so
> that it can be passed to the php form processor.  How do I access what
> the user selected?  Similarly, if I used a control that allowed for
> selection of more than one item in a list, how would I access the
> items selected by the user?


What you want to do is create an event handler for the change event on the
list. This will fire whenever someone clicks an item in the list. In the
event handler you want to look at the selected* properties (selectedItem,
selectedItems, selectedIndex, selectedIndices). These will tell you what the
user has selected in the list. At that point you can send them immediately
to your PHP script or set a local variable with their value until someone
hits a "submit" type button, or whatever happens before you send the values.



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood

Reply via email to