Description
Password protection for a single page. Visitors are required to enter a passwordand username into a login form to view the page content.
The code
// Define your username and password
$username = "someuser";
$password = "somepassword";
if ($_POST['txtUsername'] != $username ||
$_POST['txtPassword'] != $password) {?>
Login
No comments:
Post a Comment