CyberShot Posted January 21, 2009 Share Posted January 21, 2009 How hard is it to code a password script to protect an html page? This isn't high security I am talking about. Just a simple password program Link to comment https://forums.phpfreaks.com/topic/141711-coding-a-password-program/ Share on other sites More sharing options...
RussellReal Posted January 21, 2009 Share Posted January 21, 2009 not that hard.. a simple session or cookie.. and a login page setcookie session_start Link to comment https://forums.phpfreaks.com/topic/141711-coding-a-password-program/#findComment-741875 Share on other sites More sharing options...
Zane Posted January 21, 2009 Share Posted January 21, 2009 The easiest possible way in the world I can think of would be to use javascript. <br /> window.onload = function{<br /> password = '123abc';<br /> check = prompt('What is the password', '');<br /> if(check != password) {<br /> document.write("Wrong Password!");<br /> }<br /> }<br /> Link to comment https://forums.phpfreaks.com/topic/141711-coding-a-password-program/#findComment-741877 Share on other sites More sharing options...
CyberShot Posted January 21, 2009 Author Share Posted January 21, 2009 that's not bad, but javascript can be disabled and thus the password program becomes inefective Link to comment https://forums.phpfreaks.com/topic/141711-coding-a-password-program/#findComment-741929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.