Example #1
0
<?php

require_once "boot.php";
if ($_POST['email']) {
    $session_created = User::createSession($_POST['email'], $_POST['password']);
    if ($session_created) {
        header("Location: search.php");
        exit;
    } else {
        $msg = "Try Again.";
    }
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Wrestle the Jaguar</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

  </head>
  <body>


<h1>First thing's first, Who are you?</h1>

<h2><?php 
echo $msg;
?>