hey there , i have a small dilemma…
i want to send and load a few variables, im using this code…
[AS]
submit.onPress = function(){
if(password1.text==password2.text){
status1.text=“submitting…”;
var l = new LoadVars();
l.user = username.text;
l.pass = password1.text;
l.email = email.text;
trace(l);
l.sendAndLoad(‘http://xew.mine.nu/script/createuser.php’, ‘_blank’, ‘POST’);
l.onLoad = function() {
trace(“loaded”);
status1.text=“registered”;
}
}else{
status1.text=“passwords dont match”;
}
}
[/AS]
now the problem lies in this
find the line with this on it
l.sendAndLoad(‘http://xew.mine.nu/script/createuser.php’, ‘_blank’, ‘POST’);
if i place just
l.send('ht…
it sends the variables…
but i also want to retrieve some variables , and most importantly know when the variables have been sent whihc i belive you can do with
l.onLoad = function() {
i hope
now why cant i sendAndLoad just send? what is it im missing
(this is kinda newish territory for me)
thanks
//Vos
P.S. there is no problem in my .php file the variables are sent to my mysql database if i just use send