<?php require_once 'baseheaders.php'; require_once 'dblogin.php'; //session and access check $sessionCheck = new sessioncheck(); $sessionCheck->contIfSessionOk(); destroy_session_and_data(); ?> <html> <script> location = "index.php"; </script> </html>
$query = "SELECT * FROM users WHERE username='******'"; $result = $connection->query($query); if ($result != $un_temp) { }else { //JS JQuery Code goes here } */ $new_user = new registration($_POST); $new_user->add_user(); } $sessionCheck = new sessioncheck(); $sessionCheck->contIfSessionNotOk(); ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>HomeWork Websites</title> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet">