rondog Posted October 12, 2007 Share Posted October 12, 2007 I have a flash movie that prompts the user with a username and password when the movie loads and on submit it sends the variables from flash to my login.php file. If they match then goto the next frame if not echo denied.. <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if($username == "1" && $password == "2") { echo "&msgText=Entrance Granted."; $_SESSION['approved'] = 'yes'; } else { echo "&msgText=Invalid Login!"; } ?> I have the username and password set to just 1 and 2 for now, but is their a way to make this more secure without using a database? I dont like how the username and password is visible. Quote Link to comment https://forums.phpfreaks.com/topic/72991-making-a-username-and-password-without-a-database/ Share on other sites More sharing options...
MmmVomit Posted October 12, 2007 Share Posted October 12, 2007 Are there going to be multiple users? Quote Link to comment https://forums.phpfreaks.com/topic/72991-making-a-username-and-password-without-a-database/#findComment-368092 Share on other sites More sharing options...
rondog Posted October 12, 2007 Author Share Posted October 12, 2007 Oh I forgot to mention that. No it will only be one username and password Quote Link to comment https://forums.phpfreaks.com/topic/72991-making-a-username-and-password-without-a-database/#findComment-368095 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.