Integers
Soon to be Developer!
- Sep 22, 2012
- 119
- 7
PHP:
<?php
include 'core/init.php';
if (user_exists('James') === true) {
echo 'This exists';
}
die();
if (empty($_POST) === false) {
$username = $_POST['username'];
$password = $_POST['password'];
if (empty($username) === true || empty($password) === true) {
$errors[] = 'Please enter a username and password';
} else if (user_exists($username) === false) {
$errors[] = 'Username/Password not found!';
}
}
?>
Does this look alright