John1397 Topic Starter
Posts: 97

|
 |
« on: February 07, 2010, 06:05:54 PM » |
|
I am trying to password protect a HTML file, but I do not want the whole file that I am trying to protect encripted or the .htaccess way of doing it. The first page should contain the password box and upon entering correct password it would take or allow access to next page, I can put the password box in my HTML, but I do not know what to look for to make it check password and directing it to next page ?
John
|
|
|
|
|
|
|
John1397 Topic Starter
Posts: 97

|
 |
« Reply #2 on: February 08, 2010, 07:26:03 AM » |
|
Well I wanted to see if it could be done just on one page. I come up with this code... <form name="input" action="Next.html" method="get"> Password: <input type="text" name="user" /> <input type="submit" value="Submit" /> </form> ...it works fine as far as moving to the next page, but does not check for password and I wanted to use a non encripted password. I guess what I need to know is what codes are involved after you enter your password and hit enter, like most languages use the if command then if true goes on and if false returns?
John
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Geek-9pm
Thanked: 327 Posts: 8,049
Computer: Specs Experience: Familiar OS: Windows XP

Geek After Dark
|
 |
« Reply #8 on: February 09, 2010, 01:27:46 PM » |
|
The OP has already indicated that he does to want to use server side methods, This makes it near impossible to use plain vanilla HTML to do a client side page protection. And he said he does not want encryption But the OP does not seem to get it. Maybe this is some kind of homework assignment. The kind where the teacher wants to frustrate the youngster who thinks he knows it all. N o maybe the OP has been insulted and he is not coming back. But if he is still with us, here is a recombination. P lease read of this link and let yus know if you grasp the ideas. Secure Sockets Layer protocol. http://www.webopedia.com/TERM/S/SSL.html
|
|
|
|
|
|
|
|
|