I have this script :
function adauga() {
error.length = 0;
verif();
if (error.length>0) {
status_txt.text = "Completati corect toate
campurile";
} else {
trace("succes");
c1.onLoad = function() {
status_txt.text = this.rez;
switch (this.rez) {
case "b" :
status_txt.text = "Contul a fost creat
cu succes";
var i:Number = 0;
while (i<=a.length-1) {
dataSend.nume = nume_txt.text;
dataSend.pnume = pnume_txt.text;
dataSend.clasa = a[i];
dataSend.user = user_txt.text;
dataSend.parola = pass1_txt.text;
dataSend.permisiune =
"profesor";
dataSend.sendAndLoad("adauga.php", dataReceive,
"POST");
trace("Ta"+i+"="+a[i]);
++i;
}
break;
case "a" :
status_txt.text = "Contul nu a fost
creat - contul exista";
break;
default :
}
};
d.user1 = user_txt.text;
d.sendAndLoad("search.php", c1,
"POST");
}
}
I receive from the search.php the variable &rez=a or
&rez=b, in the status_txt.text shows "a" or
"b" (correct) but the instructions from switch
doesn't work. I tried with "if" too, but the same
problem, the instructions are not executed even if the
conditions is true.(the instructions in bold)
I would appreciate very much, if someone can help me to
solve this problem.
Thank you,
Mike
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
Check it out.
_______________________________________________
Flashcoders chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcode
rs
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
|