Ok this proably isnt the best style script for multi user login but:
that should work but because the password wont match with the original sort may not. I used a javascript redirect to get around it when I used this script. Instead of Header();PHP Code:<?php
session_start();
$_SESSION['name'] = $name;
{
$name = $_POST['name'];
$password = $_POST['password'];
$user = test;
$pass = test;
if(($name == $user) && ($pass == $password)){
echo "Your logged in";
Header("Location: private.php");
}else{
echo "Your details where wrong please try again!";
}
$user2 = test2;
$pass2 = test2;
if(($name == $user2) && ($pass2 == $password)){
echo "Your logged in";
Header("Location: private.php");
}else{
echo "Your details where wrong please try again!";
}
}
?>






Reply With Quote





