I am so new at this so please be kiind. I need to add multiple users to a PHP file that enables them to access a Flash document. I have a sample code here, but it doesn't work. I need to solve this ASAP, so any help would be greatly appreciated. Thanks in advance.
<?php
// SET THE CORRECT USERNAME AND PASSWORD
$correct_user = "userone";
$correct_pass = "passone";
$correct_user = "usertwo";
$correct_pass = "passtwo";
// Checkif the username is correct
if ($user==$correct_user){
//IF the username is correct, check the password
if ($pass==$correct_pass){
//If the password is correct, return "ok"
$response="ok";
} else {
//Else the password is wrong
$response="Wrong password";
}
} else {
//If the username is wrong
$response="Wrong username";
}
//Return the response to Flash
print "&response=".$response."&";
?>