2 Replies Latest reply on Sep 15, 2009 12:29 AM by Varun Bajaj (PHP)

    Email flex list contents using php

    Marlene Level 1

      I have dragged 5 items from a datagrid to a drop-enabled list component. Now I want the user to be able to email himself the list. I am using PHP and have an HTTP service request and PHP mailer code but I do not know how to get the data that is in the list into variables that I can use with my php code.




           <mx:DataGrid dataProvider="{restaurantsAC}" dragEnabled="true" height="300" width="600" id="restaurantsDG">


                <mx:DataGridColumn dataField="restaurantName" />

                <mx:DataGridColumn dataField="restaurantAddress" />

                <mx:DataGridColumn dataField="restaurantCuisine" />

                <mx:DataGridColumn dataField="restaurantPrice" />



           <mx:LinkButton label="Show my Favorites List" click="showFavoritesList()"/>




      <mx:Canvas id="favoritesListContainer" height="100%" includeInLayout="false" visible="false">

      <mx:SWFLoader source="assets/myFavorites.swf" x="10" y="10"/>

      <mx:List id="favoritesList" x="10" y="40" dropEnabled="true"  labelField="restaurantName" />




      <mx:Button click="sendFavorites()" />    



      public function sendFavorites():void {

                      var h:HTTPService=new HTTPService();








      Thanks for any assistance!