I have a form that I've been using to handle TextInput components in
Flex and I want to now be adding other components.  This is a form
that sends data to a php form processor that either puts the data into
into a database or just emails it, or both.  
When working with this component:
<mx:FormItem label="Email:">
    <mx:TextInput id="email" width="200"/>
</mx:FormItem>
That's simple enough to package it in an object named obj like this.
obj.email = email.text;

It gets a little more complicated using components like ComboBoxes. 
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?
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?

Here's a way I have the ComboBox defined:
<mx:ComboBox id="choice" width="300">
       <mx:ArrayCollection>
                <mx:String>Choice 1</mx:String>
                <mx:String>Choice 2</mx:String>
                <mx:String>Choice 3</mx:String>
      </mx:ArrayCollection>                                
</mx:ComboBox> 

I want to be able to pass the Choice made by the user to the php form
processor.  Can someone explain this, please?
Thanks,
Bruce

Reply via email to