I am working on a website with a flash header that has a login field in it. We are getting flash to send the info to a php page which uses our forum datatbase. We have the the login part working, but we wanted to go a step further. We wanted flash to send username and password to php and php would return 1 if the login was successful and the username or if it wasnt successful it would return a 0. From there we would have flash display something like Login was successful or Login failed. After working with it a bit, I could only get the flash username and password box to work correctly only if I was using var.send(.....) when I changed it to var.sendAndLoad(....) it wouldnt work right (wouldnt log in to the forum or display the login successful message) Trying to troubleshoot I made a new generic login flash file. Had a place for the username, password, a button, and a text area to display login successful or failed. When I put in my username and password, it would send it to the login.php and it WOULD return the 1 and username if it was correct or 0 if it was incorrect, but it would not actually log the user in to the forum. I copied my code form the generic login flash file to the real website header. The header will only work if i change var.sendAndLoad to var.send. When it has var.sendAndLoad, it will not even display the login successful/failed like the generic flash did. Can anyone help me fix this? Zip of files: http://www.a-i-f.net/website.zip (header.fla, header.swf, login.php, generic.fla, generic.swf)
|