0 Replies Latest reply on Aug 24, 2007 10:50 PM by SBiMedia

    Checkbox Help

    SBiMedia

      I need help ASAP. Here's the problem. I have created a 2 page form in Flash Prof 8. I don't have any issues passing the TextField variables to php from either page 1 or page 2, but I can't seem to get the Checkbox values on page 1 to carry over to page 2 and be uploaded to the database when the submit button is triggered.

      My script is attached:

      on (release) {


      //loads variable and submits to .php page
      var my_lv:LoadVars = new LoadVars();

      my_lv.firstName = _level0.firstName;
      my_lv.lastName = _level0.lastName;
      my_lv.email = _level0.email;
      my_lv.zipcode = _level0.zipcode;
      my_lv.myVar1 = _level0.myVar1;
      my_lv.myVar2 = _level0.myVar2;


      mytmpvar = optIn_chBx1.selected;
      if (mytmpvar == true) {
      my_lv.myVar1 = true; }
      else {
      my_lv.myVar1 = false;
      }

      mytmpvar = optIn_chBx2.selected;
      if (mytmpvar == true) {
      my_lv.myVar2 = true; }
      else {
      my_lv.myVar2 = false;
      }



      my_lv.sendAndLoad("SubmitEntry.php", my_lv,"POST");