Hi,
trying to get a handle on php and flash..
I'm sort of guessing here..
Can anyone tell me where I'm going wrong??
Basically, I've got a flash login page with a username text field and password textfield.
when I hit the login button I want it to check the database/file/script to see if the username and password are correct and do one of two things.. (get success.php or fail.php)
ActionScript for Login button
on (release) {
loadVariablesNum ("login.php", 0, "POST");
if (auth==1) {
getURL ("success.php");
} else {
getURL ("fail.php");
}
}
login.php basically has a line that echoes a value for auth.. which will depend on whether the database has the username and password..
for testing purposes. login.php just has the line
echo "auth=0";
therefore assuming that the login is always wrong..