<?php /** * Created by PhpStorm. * User: Celine */ session_start(); spl_autoload_register(function ($class) { require_once "class/{$class}.php"; }); if (!isset($_GET['event_id'])) { $_GET['event_id'] = 'i'; } else { $id = $_GET['event_id']; DataBucket::get_page_header($id); } $funObj = new Access(); if (isset($_POST['login'])) { $email = $_POST['email']; $password = $_POST['password']; $user = $funObj->Login($email, $password); if ($user) { // Registration Success //$_GET['page'] = 'dashboard'; header("Location:index.php?page=dashboard"); } else { // Registration Failed echo "<script>alert('Emailid / Password Not Match')</script>"; } } ?>