4 Replies Latest reply on Sep 18, 2006 11:37 AM by calmchess333

    php vars to flash

    calmchess333 Level 1
      I'm useing the following scripts to pass a variable from php to a flash combo box....problem is I get undefined in the combo box when i test my movie using cntrl + enter and if i try to view the swf on the webserver.
      Will somebody please tell me what i'm doing wrong?

        • 1. Re: php vars to flash
          TimSymons Level 1
          Just a couple of notes.

          1) don't use a '$' in front of the variables you are sending to Flash.

          "$comboData1" should be "comboData1"

          2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

          3) Try something straightforward first, like:

          echo 'comboData1=this is data 1';

          If that works then move up to trying the variables.

          4) The last thing to note is that your PHP variables are surrounded by quotes.

          "$dataForCombobox_1" should be $dataForCombobox_1

          Hope these help.

          Tim
          • 2. Re: php vars to flash
            TimSymons Level 1
            Just a couple of notes.

            1) don't use a '$' in front of the variables you are sending to Flash.

            "$comboData1" should be "comboData1"

            2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

            3) Try something straightforward first, like:

            echo 'comboData1=this is data 1';

            If that works then move up to trying the variables.

            4) The last thing to note is that your PHP variables are surrounded by quotes.

            "$dataForCombobox_1" should be $dataForCombobox_1

            Hope these help.

            Tim
            • 3. Re: php vars to flash
              inactiveforumnotifier Level 1
              Just a couple of notes.

              1) don't use a '$' in front of the variables you are sending to Flash.

              "$comboData1" should be "comboData1"

              2) Not sure about using multipl "echo" statements. I never have but that doesn't mean you can't.

              3) Try something straightforward first, like:

              echo 'comboData1=this is data 1';

              If that works then move up to trying the variables.

              4) The last thing to note is that your PHP variables are surrounded by quotes.

              "$dataForCombobox_1" should be $dataForCombobox_1

              Hope these help.

              Tim
              • 4. Re: php vars to flash
                calmchess333 Level 1
                I still get undefined in the combo box.