session_start();
//set the error message to null
$errorMessage = '';
if (isset($_POST['logout'])) {
$_SESSION['user_logged_in'] = false;
}
if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['clientsubmit'])) {
//variable's posted from the form
$fusername = $_POST['username'];
$fpassword = $_POST['password'];
include('db_connect.php');
//create query to check if the username/password combination exsists
$query = "SELECT Username "
. "FROM Users "
. "WHERE Username = '" . $fusername . "' "
. "AND Password_2 = PASSWORD('" . $fpassword . "')";
$result = mysql_query($query) or die('Query failed (' . mysql_error() . ')');
mysql_close();
if(mysql_num_rows($result) == 1) {
// the username & password match
// set the session
$_SESSION['user_logged_in'] = true;
//create a session variable to be used as a filter
//set the variable to the value of the username
$_SESSION['filter'] = $fusername;
// after login move to the main page
header('Location: client.php');
exit;
} else {
$errorMessage = 'Sorry, Wrong Username/Password';
}
}
?>
EBS Computers: Computer and laptop repairs and sales - Hertfordshire
EBS Computers, PC Sales, PC Repairs, Laptop sales, Laptop Repairs, Computer Upgrades, Virus Removal, Corporate Networks, Home Networks, PC Shop St Albans
EBS Computers offers PCs, laptops and computer equipment for sale and repair. We also offer maintenance and technical support for your business or home network.
With today's dependence on computer technology within both the home and office environments, individuals and companies need a fast, reliable & professional service they can depend upon.
EBS Computers offer a full compliment of IT solutions to meet all of your technology requirements.
PC & LAPTOP SALES
HOME NETWORKING
BUSINESS NETWORKING
PC & LAPTOP REPAIRS
DIAGNOSTIC ISSUES
HARDWARE INSTALLATION
SOFTWARE INSTALLATION
VIRUS PROTECTION
MALWARE REMOVAL
SYSTEM UPGRADES
DATA RECOVERY
Our team of professional, experienced staff are here to help and our rates are extremely competitive.
EBS Design Services
The Design Team at EBS offer high quality deign for print and web.
Services include:
WEB DESIGN
WEB MARKETING
SEARCH ENGINE OPTIMISATION
BUSINESS BRANDING / REBRANDING
CORPORATE GRAPHICS
PROMOTIONAL MATERIALS
Please contact us to see how we can help you increase your profitability.
****NEWSFLASH****
EBS Ltd has aquired
R&J Computer Services of Hemel Hempstead.