MySQL Password validation

Hi.

I want to create a website with restricted access in form of a password validation system.

Only a password should be required to access the website.

I have to be able to create valid passwords in a MySQL database and then have Flash check the database when a user tries to access the website.

If the password is valid : go to frame X
if the password is invalid: give a message to the user telling he is trying to access the website with an invalid password.

What is the easiest way to create this? Can you recommed a tutorial?

Thank you very much!Hi.