} else { if ($_POST['password'] != $_POST['password-confirm']) { $errors[] = "Passwords do not match."; } } if (empty($firstname)) { $errors[] = "Please include your first name."; } if (empty($lastname)) { $errors[] = "Please include your last name."; } if (empty($email) || !filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors[] = "Invalid email address."; } if (empty($errors)) { $qbc->register($username, $_POST['password'], $firstname, $lastname, $email); header("Location: login.php?success=true"); } } ?> <!doctype html> <html lang="us"> <head> <meta charset="utf-8"> <title>Coreference Tool - Register</title> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/bootstrap-theme.min.css" rel="stylesheet" media="screen"> <link href="css/coref.css" rel="stylesheet"> <script src="js/jquery-1.10.2.js"></script> <script src="js/bootstrap.min.js"></script> <style type="text/css">