halo
I want to create a simply login form withaut a db, this login form is going to be used from just one user
some thing like this:
if the user name and password is corect to be able to get in to the page
this page is going to be able to see onli one user the user who got a password....
please help ......
login form
Moderator: General Moderators
Code: Select all
<?php
$login="someone";
$pass="password";
if((@$_POST["login"]==$login)&&(@$_POST["pass"]==$pass)){
?>
protected page goes here
<?php
}else{
?>
<form action="<?=$_SERVER['PHP_SELF'];?>" method="POST">
<input type=text name="login"/>
<input type=password name="pass"/>
<input type=submit value="Log in"/>
</form>
<?php
}
?>-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK