Hi all, could someone help me with my logon system, put simply it will not work for me .
I think it might be because its on a button at the bottom of 2 movieclips (MenuWindow and then SignonWindow).
frame 2: password/username incorrect
frame 3: success
av.php when in browser returns:
&user_username=Chris&user_password=error
when logon fails or
&user_username=Chris&user_password=password
when logon is succesfull
PHP Code:
on (release, keyPress "<Enter>") {
if (local_username = " ") {
gotoAndStop(2);
} else {
command = "signon&local_username=" + local_username + "&local_password=" + local_password;
loadVariables("./av.php?cmd=" + command, 0);
if (local_password eq user_password) {
_root.local_username = local_username;
_root.local_password = local_password;
command = "avatarid&local_username=" + _root.local_username;
loadVariables("./av.php?cmd=" + command, 0);
_root.local_id = user_id;
_root.gotoAndStop(3);
} else {
gotoAndStop(2);
}
}
}
thx in advance.