So I have created a login on my flash website and so far it has worked perfectly. However, I have since updated it to function as a multi-user login so that when each client logs in they see their own personal information.
I know my PHP works, as I have scripted it myself and used it many different times. My problem is when I try to log in via my flash web site my browser (Firefox) keeps displaying “Transferring data…” at the bottom of the browser for over 3 minutes and then finally gives up.
FLASH WEBSITE:
Username: Input text field, Var:userName
Password: Input text field, Var:passWord
Login button ActionScript:
on (release, keyPress “<Enter>”) {
if (userName != “” && passWord != “”) {
loadVariablesNum(“dataProcess.php”, 0, “POST”);
}
}
header() from dataProcess.php:
dataProcess script published at: scripts.tropicalpcsolutions.com. Awesome scripts!
source files can be found here for reference:
http://scripts.tropicalpcsolutions.com/html/php-script/secure-login-php-script.html
function success($loginName)
{
$filename = “user.log”;
$log=fopen($filename, “w+”);
fputs($log, $loginName);
fclose($log);
Header(“Location: “.$_POST[‘user’].”.php”);
}
Basically, whenever someone logs in they are directed to their own page.
Not sure what else to include, if anyone thinks I need to show more just let me know and I will see what I can do.
If anyone can offer any help or ideas that would be great!
Cheers,
-Shoal