I'm very new to PHP and was wondering if anyone had the code for a very simple password protection script.
I have
[FONT="Times New Roman"]<form id="login1">Username:<input type="text" size="18" id="username"> Password:<input type="password" size="18" id="password"><input type="submit" id="submit" value="submit"></form>[/FONT]
It's very simple.
I want to know if there's a way to have PHP code that only lets you view the page if you write "myname" in the username field and "isjim" in the password field.
I know this isn't the most secure way to do it, but as long as there is a little bit of protection, im fine with it
Thanks 🙂