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 Link to comment https://forums.phpfreaks.com/topic/175544-simple-password/ 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'); ?> Link to comment https://forums.phpfreaks.com/topic/175544-simple-password/#findComment-925099 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; } ?> Link to comment https://forums.phpfreaks.com/topic/175544-simple-password/#findComment-925151 Share on other sites More sharing options...
haku Posted September 26, 2009 Share Posted September 26, 2009 That's not even remotely more secure. Link to comment https://forums.phpfreaks.com/topic/175544-simple-password/#findComment-925360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.