7 Replies Latest reply on Nov 7, 2006 7:30 AM by kglad

    Radio buttons

    binx4life
      Does anyone have a sample script of how to send radio button info variables to a simple PHP script that will email me the results? I can get it to work with input text boxes, but not with radio buttons. Just need a sample of what the code on the submit button would look like. No validation is needed. I have a survey that uses radio buttons, and I can't get it to send the results to the PHP that emails me the results. Thanks.
        • 1. Re: Radio buttons
          kglad Adobe Community Professional & MVP
          for groupName equal to radioGroup you can use:

          • 2. Radio buttons
            binx4life Level 1
            Thanks! I will try that. Will this script work unchanged for input text boxes as well? Like if I had both radio and input boxes in the same survey. This is the rough survey I have so far before I put it into the main page. http://ebinx.com/carrand/freestuffswf.swf

            And, do I have to list all the radio groups in the survey? Like:
            • 3. Re: Radio buttons
              kglad Adobe Community Professional & MVP
              you need to assign lo to be the listener for those other radioGroups and you need to assign variables and values to your input textfields, too.

              if you need more help, what's the instance names of your textfields and are they components?
              • 4. Radio buttons
                binx4life Level 1
                The text fields I have are not components, just made a textbox and changed it to input text, then gave it a VAR name and no instance name. Did that for all the imput text boxes in my survey. I just do not know how to get the imput text boxes and all the radio buttons to all pass over to my PHP for that sends me the email.

                Some of the radio button group names I have are just the number of the question with a part of the question. Example of the radio group names are: 1gender, 2age, 3family

                Examples of the VAR names for imput text boxes are similar, but for one question with many imput text boxes it looks like: 6brand, 6product, 6store, 6address, 6city

                I am using MX 2004
                • 5. Re: Radio buttons
                  kglad Adobe Community Professional & MVP
                  objects in flash should not have an initial character equal to a number.

                  you didn't list the variable names of your textfields but if they are something like tf1Var, tf2Var etc and they are on the same timeline as your code, you can use:

                  • 6. Radio buttons
                    binx4life Level 1
                    ok, I thought I was home free with that last script, but something is still not working. It still will not send me an email with the results. Here is the code I have now.
                    • 7. Re: Radio buttons
                      kglad Adobe Community Professional & MVP
                      i don't see a problem with your flash code. you should start debugging by removing (or commenting out) large chunks of the unneeded variables in your php script to see what's incorrectly formatted or undefined.