Howdy … I have the following Problem
I send the follwoing via a Buttonscript:
on (release) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
_root.erfolg = "Gesendet";
} else {
_root.erfolg = "Fehler";
}
};
var send_lv:LoadVars = new LoadVars();
send_lv.sessionid = "6a3289e8d3f3906fad8d8fda7141a72b";
send_lv.salutation = this.salutation.text;
send_lv.email = this.email.text;
send_lv.pass = this.pass.text;
send_lv.pass2 = this.pass2.text;
send_lv.street = this.street.text;
send_lv.city = this.city.text;
send_lv.country = this.country.text;
send_lv.firstname = this.firstname.text;
send_lv.lastname = this.lastname.text;
send_lv.birthdate = this.birthdate.text;
send_lv.sendAndLoad("index.php?action=register&debug=1",result_lv,"POST");
}
so far so good (the stuff is written in a Database)
As a Response I get this
<?xml version="1.0"?>
<loggedin> 0 </loggedin>
<sessionid> 6a3289e8d3f3906fad8d8fda7141a72b </sessionid>
<sessionname> PHPSESSID </sessionname>
<app_status> FAIL </app_status>
<errors>
<email> MISSING </email>
<pass> MISSING </pass>
<pass2> MISSING </pass2>
<firstname> MISSING </firstname>
<lastname> MISSING </lastname>
<birthdate> MISSING </birthdate>
<salutation> MISSING </salutation>
</errors>
How doi i parse the XML so that i can show the Missing Stuff in sum Textfields after I submitted it?
any help much appreciated
cheers
Chrome