authentication and php

amareldo

New member
authentication and php

Hi, Little question: What is the most basic (simple) way to authenticate the admin of the site before showing the html page? I search the net and found a lot of complex authentication scripts. They offer full system to a lot of users and I only need the option to let 1 user to see a certain page. Thanks.
 

dando

New member
הממ. ...

The most basic way is to make a form with user/pass field, and in the page that recieves the form you have to check : if ($_POST[user'] == "THE_USERNAME" && $_POST['pass'] == "THE_PASS" ) { bla bla bla }​
 
למעלה