44 lines
1.9 KiB
PHP
44 lines
1.9 KiB
PHP
<?php
|
|
session_start();
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<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.0">
|
|
<title>Register | Chiro - Canto</title>
|
|
<link rel="stylesheet" type="text/css" href="/styles/style.css">
|
|
</head>
|
|
<body>
|
|
<?php include("$root/menu.php");?>
|
|
<?php include("$root/header.php");?>
|
|
<section>
|
|
<h2>Register</h2>
|
|
<?=(isset($_SESSION['error_msg']) and ! $_SESSION['error_msg'] == "") ? '<div class="error">'.$_SESSION['error_msg'].'</div>' : ""?>
|
|
<form action="register.php" method="post">
|
|
<label for="firstname">First Name*</label>
|
|
<input id="firstname" type="text" name="firstname" placeholder="John" required>
|
|
<label for="lastname">Last Name*</label>
|
|
<input id="lastname" type="text" name="lastname" placeholder="Doe" required>
|
|
<label for="username">Username*</label>
|
|
<input id="username" type="text" name="username" placeholder="jojo" required>
|
|
<label for="password">Password*</label>
|
|
<input type="password" name="password" id="password" placeholder="************" required>
|
|
<label for="email">Your email*</label>
|
|
<input type="email" name="email" id="email" placeholder="john.doe@example.com" required>
|
|
<label for="website">Your website (optional)</label>
|
|
<input type="url" name="website" id="website" placeholder="https://example.com">
|
|
<input type="submit" name="submit" value="submit"><input type="reset" name="reset" value="reset">
|
|
</form>
|
|
</section>
|
|
<?php include("$root/footer.php");?>
|
|
</body>
|
|
<script src="/scripts/script.js"></script>
|
|
</html>
|