www/public/join/index.php

59 lines
2.3 KiB
PHP

<?php
session_start();
$root = realpath($_SERVER['DOCUMENT_ROOT']);
?>
<!DOCTYPE html>
<html lang="fr">
<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>Les Cocottes Minutes</title>
<link rel="stylesheet" href="/styles/style.css">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="//unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
</head>
<body>
<div class="container">
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
</div>
<section>
<div class="container flip reduced"></div>
<div class="container join">
<h2>Adhérer aux Cocottes Minutes</h2>
<form action="join.php" method="POST">
<label for="name">Nom*</label>
<input type="text" name="name" id="name" placeholder="Mister Cot" required>
<label for="number">Numéro étudiant</label>
<input type="text" name="number" id="number">
<label for="email">Email*</label>
<input type="email" name="email" id="email" placeholder="cot.cot.cot@cocottes-minutes.fr" required>
<input type="submit" name="submit" value="Je deviens une Cocotte !">
</form>
<p>* obligatoire</p>
<?php
if (isset($_SESSION['error_msg']) && $_SESSION['error_msg'] != "")
{
?>
<div class="error">
<?=$_SESSION['error_msg']?>
</div>
<?php
$_SESSION['error_msg'] = "";
}
?>
</div>
<div class="container flip reduced"></div>
</section>
</div>
<?php include("$root/footer.php");?>
<script src="/scripts/script.js"></script>
<script src="//unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<script src="/scripts/map.js"></script>
</body>
</html>