Intrest Posted September 25, 2009 Share Posted September 25, 2009 Hey! I don't know how to get a simple HTML password system to work. loadpanel.php: <form action="load.php"> Welcome to ACID.Games Control Panel, please login to continue to the ACID cPanel. Password: <input type="password" name="password"> <input type="submit" value="Login"> </form> ______ load.php: Not sure what to put, want to do somthing like if $_POST["password"] = thepassword then redirect to mywebsite.com/hiddenpage4569.php ______ Regards, ~Andrew Quote Link to comment Share on other sites More sharing options...
Alex Posted September 25, 2009 Share Posted September 25, 2009 This is a PHP question, not HTML. And that's not very secure, but to do what you asked it would be like this: <?php if($_POST['password'] == 'somepassword') header('Location: mywebsite.com/hiddenpage4569.php'); ?> Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 26, 2009 Share Posted September 26, 2009 Might work dam more secure. <?php if(md5(sha1($_POST['password'])) == md5(sha1('somepassword'))){ header('Location: mywebsite.com/hiddenpage4569.php'); exit; } ?> Quote Link to comment Share on other sites More sharing options...
haku Posted September 26, 2009 Share Posted September 26, 2009 That's not even remotely more secure. Quote Link to comment 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.