Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['Login']))
- {
- $_user = $_POST['uname'];
- $_pass = $_POST['pass'];
- //Lets look up the login information
- $__login1 = mysql_query("SELECT * FROM rmaUser Where userLogin = '$_user' ", $conn) or die (mysql_error());
- $__login2 = mysql_fetch_array($__login1);
- //lets check what the result was
- $__user = $__login2['userLogin'];
- $__pass = $__login2['userPass'];
- // Is the Username and password valid or correct?
- if ($_user != $__user && $_pass != $__pass) {
- include "header.php";
- echo "<center>Sorry, Username or Password was Incorrect!<br>";
- } else {
- $co_time = time() + 1800;
- setcookie("rmaUserOn", "true", $co_time);
- echo "welcome";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement