This content has been marked as final. Show 3 replies
Your testing function is not being called. You need to set the result event like this:
id = "http"
url = " http://localhost/PHPDocument1.php"
You can then get the result in two differnt ways:
public function testing(evt:ResultEvent):void
mx.controls.Alert.show("this is the output " + http.lastResult.happy);
Using evt.result is often more flexible than http.lastResult for me since you are able to decouple the result from the call. It also is helpful for debugging if there is a problem.
On the same subject i leave you with a dout:
- I have a RIA similiar to xyco45 , but because im portuguese :P i use special characters like 'ç' or 'á'. And when i post data from flex with this caracters to the PHP Script, it changes to anothers like this '§'.
I bet on the PHP Script..
Here the Solution for my Question if anyone need:
header('Content-Type: text/html; charset=UTF-8;');
"From: [FRANCHISING]\n" .
"MIME-Version: 1.0\n" .
"Content-Type: text/html; charset=UTF-8;");
We must specifty the charSet type.