1 Reply Latest reply on Dec 15, 2009 1:40 AM by paul.williams

    display flex form values in the same browser..

    vijay424

      Hello All,

       

      im new to flex. im trying to work on flex and php linkup. when submitting a form, the posted variables display in same php file.
      i placed the 95x319 size swf file (build released) in the same php file (sample.php).

       

      MXML code:

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="95" width="319">

         <mx:HTTPService id="srv" url="sample.php" method="POST" />
         
              <mx:Form x="10" y="10" width="282" height="75">
                 <mx:FormItem label="Username" >    <mx:TextInput id="user"/>    </mx:FormItem>
                 <mx:FormItem>    <mx:Button label="Submit" click="srv.send();"/>    </mx:FormItem>    
              </mx:Form>


      </mx:Application>

       

      sample.php

       

      <?php
         print_r($_POST);
      ?>
      <!-- swf code starts-->
             swf code
      <!-- swf code ends-->

       

      when im trying to call this sample.php, the swf is rendering correctly but not getting the posted values.

      Thanks in advance,

       

      Best Regards,

      Vijay