Flash / PHP User Login Integration

Would someone please help out with provided a source file that will redirect to a file called home.php and allow the username to remain logged in if the username/password they inputting in the flash file matches? Ive tried the script below and some tutorials but no luck. Any help would be appreciated.

Thanks,

Junior

Would anyone be able to help me in adding a login with username and password toa flash file, so that it works with my PHP script that calls a MySQL database? All I need is to have the username and password fields in the flash file and then reload to a non-flash file html if the password/username are verified.

If you need details from me, please let me know as I dont know if the above explanation is good enough.

Thanks.