6 Replies Latest reply on Apr 25, 2007 7:25 AM by kglad

    combo box compnonent

    dazzclub
      Hi guys and girls

      I have a drop down men on my contact form and its the combo box that is already been built, my question is how can i get the data that the user will select to appear in my email.

      i can do it with with textfields, where by you make both the variable names the same , but im unsure about the combo box.

      the server side langauge i am using is php.

      cheers
        • 1. Re: combo box compnonent
          kglad Adobe Community Professional & MVP
          if you use a loadvars object to call you php you can use:

          • 2. Re: combo box compnonent
            Level 7
            Your question is a little unclear on what you are trying to achieve.

            The comboBox component has two values you can set: label and data. The
            label is what shows up in the drop down.
            You can get the values of the comboBox like so:

            myComboBox.getItemAt(1).label
            myComboBox.getItemAt(1).data

            Take a look at the ComboBox class for more info.


            --

            Dan Mode
            --> Adobe Community Expert
            *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
            *THE online Radio* http://www.tornadostream.com <--check this

            *Must Read* http://www.smithmediafusion.com/blog



            "dazzclub" <webforumsuser@macromedia.com> wrote in message
            news:f0amp6$lms$1@forums.macromedia.com...
            > Hi guys and girls
            >
            > I have a drop down men on my contact form and its the combo box that is
            > already been built, my question is how can i get the data that the user
            > will
            > select to appear in my email.
            >
            > i can do it with with textfields, where by you make both the variable
            > names
            > the same , but im unsure about the combo box.
            >
            > the server side langauge i am using is php.
            >
            > cheers
            >


            • 3. Re: combo box compnonent
              dazzclub Level 1
              i well what i want to dois allow the user to select from a drop down menu, and what ever is chosen. Using the same methods for the standard input textfield. where by the varibale names in the sf file and the php file are the same , all is well, and the data is sent to my email account.

              i assumed the combox worked the same whereby keeping variable names the same in your and php.
              • 4. Re: combo box compnonent
                kglad Adobe Community Professional & MVP
                the code i gave should be:

                • 5. Re: combo box compnonent
                  dazzclub Level 1
                  Hi there,

                  Thanks for your speedy reply.

                  So with the code you had given me, it had published an error

                  **Error** Symbol=sprite 194, layer=Layer 19, frame=1:Line 16: Statement must appear within on/onClipEvent handler

                  To which i had placed an onClipevent ( should i have done this?? )

                  now once i did that a new error comes out displaying

                  **Error** Symbol=sprite 194, layer=Layer 19, frame=1:Line 18: '(' expected

                  i believe i may have totally messed up here, sorry
                  • 6. Re: combo box compnonent
                    kglad Adobe Community Professional & MVP
                    my code should be attached to the timeline that contains the combobox.