I've recently started an application on Flex 3.3 which will be based on a database and it will include some components in order to insert new rows with user feedback to the database.
I'm new to Flex but I've been searching for the last 6 hours and it seems that my flex code and my php code are ok. For some reason though the variables from the HTTP Service are not passed to the php script.
here is my php assignment to variables (I'm not including the code for the insertion to the database table because this is working for sure )
and here is my http service.
<mx:HTTPService id="toPHP" method="POST" url="test.php" useProxy="false">
<mx:Button x="617" y="51" label="Submit" id="submit" click="toPHP.send()"/>
I tried to navigate to the php file right after the send() through the swf and if i echo the php variables I get 3 errors saying that Name,Email,Feedback are undefined.
if you think there is some other part of my mxml needed in order to help let me know so I can post it, but I think that if there is something wrong then its here.
Also, I'm using EasyPHP 3.0 in my local machine.
I'm wondering how to send variables to PHP myself. Have you figured it out?
Try to add the ResultEvent and FaultEvent to HttpService,
The code at the flex side is corrcect may be the url which u specifed in the HttpService may be wrong try to check the Url and
first check whether r u able to call your PHp Class or not??