Hi,
Am working on a site that needs a user login. Found the tutorial at: http://www.kirupa.com/developer/actionscript/authentication.htm and tried to incorporate it into my site design. If I view the php file in my browser I just get a blank screen.
I tried swapping:
$user=$_POST['user'];
$pass=$_POST['pass'];
for
$user = "myuser";
$pass = "mypassword";
(ie. values which I know are in the database) When I do this the browser displays the desired results eg “status=You’re in&checklog=1”
So it seems the problem is with passing the values from flash to PHP. The ActionScript behind the submit button looks like this:
on (release, keyPress "<Enter>") {
if (userinput.text != "" && passinput.text != "") {
status = "Begin Login Process - Wait...";
loadVariablesNum("newlogin.php", 0, "POST");
}
else status = "Please complete your user name and password before clicking submit";
}
I’ve double checked that the instance name and var values are right in the .fla
Can anyone offer any help please? I’m tearing my hair out after about 2 days trying to make this work!
Cheers
Bob