3 Replies Latest reply on Sep 12, 2012 8:00 AM by kglad


    Ron Colmen Level 2

      I want to be able to ONLY trigger a php file. I'm using the code below.

      When i use this, it actually opens the php (patentsList3.php) file in the browser window replacing my webpage? I only want to trigger the php - I don't want anything else hapening. How do I achieve this?


      I tried removing "_self", but no success.

      var SendLoad:LoadVars = new LoadVars();

      SendLoad.load("/patentsList3.php","_self", "POST");

        • 1. Re: .loadOnly
          kglad Adobe Community Professional & MVP




          var sendLV:LoadVars = new LoadVars();

          var receiveLV:LoadVars = new LoadVars();

          // add an onData method if you want to receive data from your php

          sendLV.sendAndLoad("/patentsList3.php",receiveLV, "POST");

          • 2. Re: .loadOnly
            Ron Colmen Level 2

            Hi Kglad -  thanks.

            But it doesn't work as I expected. the php is supposed to open another webpage if the statement is TRUE and keep the current page open when it's FALSE.

            when i used my previous code it did open the page when the if statement was true but the problem was it opened the php file when the if statement was false.

            when i used your code nothing happened?

            • 3. Re: .loadOnly
              kglad Adobe Community Professional & MVP

              what if-statement?


              and what's your php code?