5 Replies Latest reply on Feb 16, 2010 1:10 AM by <patel:tanmay />

    How to Redirect from GET or POST to Php file?

    EMelville Level 1

      Hi, i'm simply trying to redirect to the php script page away from the flex application when I send the HTTPService. Does anyone know what i'm missing?

       

      Thanks!

       

      Code Below:

       

      <mx:HTTPService id="sendData"

           url="checkout.php" method="GET"

           result="handleResult(event)"

           fault="handleFault(event)"

           resultFormat="text">

       

          public function handleResult(event:ResultEvent):void {

       

                    // Redirect to checkout.php page with data.

          }

       

          public   function handleFault(event:FaultEvent):void {

                   mx.controls.Alert.show ( event.fault.toString() );

       

          }