Hello All,
I'm trying to do a login/logout area of the site so users can access certain areas. There will only be one username and password. What would be the best way to set that up? Thanks a lot!
![]() | It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!) |

|
|
|
|
Moderator: Malcolm



<?
if(isset($_POST['B1'])) {
$name = $_POST['name'];
$pass = $_POST['pass'];
if($name == "TUnit" && $pass == "123") {
echo "THE WHOLE SITE HERE";
}
}
?>
<form method="POST" action="<? $PHP_SELF ?>">
Username:<br/>
<input type="text" name="name"><p/>
Password:<br/>
<input type="password" name="pass"><p/>
<input type="submit" name="B1" value="LOGIN">


Users browsing this forum: No registered users and 1 guest