Use HTTPService to call Php page and pass parameter with request
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" creationComplete="send_data()"> <mx:Script> private function send_data():void { userRequest.send(); } </mx:Script> <mx:VBox> <mx:Label text="Username" /><mx:TextInput id="username" /> <mx:Label text="Email Address" /><mx:TextInput id="emailaddress" /> <mx:DataGrid id="dgUserRequest" dataProvider="{userRequest.lastResult.users.user}"> <mx:columns> <mx:DataGridColumn headerText="User ID" dataField="userid" /> <mx:DataGridColumn headerText="User Name" dataField="username" /> </mx:columns> </mx:DataGrid> <mx:TextInput id="selectedemailaddress" text="{dgUserRequest.selectedItem.emailaddress}" /> <mx:Button label="Submit" click="send_data()" /> </mx:VBox> <mx:HTTPService id="userRequest" url="http://localhost/r.php" useProxy="false" method="POST"> <mx:request xmlns=""> <username>{username.text}</username> <emailaddress>{emailaddress.text}</emailaddress> </mx:request> </mx:HTTPService> </mx:Application>