"); /* Compare the selected name to the array to get the selected image **I Don't like this part, Theres gotta be a better way */ if($_POST['banner_list'] == '0'){print("  $banner[0]");} if($_POST['banner_list'] == '1'){print("  $banner[1]");} if($_POST['banner_list'] == '2'){print("  $banner[2]");} if($_POST['banner_list'] == '3'){print("  $banner[3]");} if($_POST['banner_list'] == '4'){print("  $banner[4]");} if($_POST['banner_list'] == '5'){print("  $banner[5]");} if($_POST['banner_list'] == '6'){print("  $banner[6]");} print("

BACK

"); exit; } // Code to run when submit is clicked if($_POST['action'] == "true"){ if($password == $_POST['pass_entry'] & $username == $_POST['name_entry']){ print("Thank you for entering the correct password

"); // If password matches print("Please select a banner"); // Start new form print("
BACK

"); exit;} else{ print("Sorry, Either Your Username or Password is Incorrect
Please try again
"); // If password doesnt match entry } } ?>
Please Enter Your Username:
Please Enter Your Password:



BACK