PHP – make webpage password protected

This trick helps you protect your web page with a help of a password...Here is the code:

  

if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {?>

Login

”>



This is the protected page. Your private content goes here.

Post Comment
Login to post comments