inscription.php 1.1 KB
<?php
session_start();
require("accesBase.php") ;
?>

<!DOCTYPE html>

<html>
	<head>
		<?php include("head.php"); ?>
	</head>

	<!-- Contenu du site -->
	<body>
		<?php include("header.php"); ?>

		<!-- Centre de la page -->
		<div class="container-fluid">
			<div class="row">

				<!-- Contenu de la page -->
					<!-- Connexion -->
					<div class="row syst">
						<div class="inscritpion">
							<?php
							if (notAMember($_POST["id"])){
								if($_POST["pass1"]==$_POST["pass2"]){
									if(inscription($_POST["id"], $_POST["pass1"], $_POST["nom"], $_POST["prenom"]))
									{
										$_SESSION['Login'] = $_POST['id'];
										$_SESSION['Password'] = $_POST['pass1'];
										?><meta http-equiv="Refresh" content="0;url=accueil.php" /><?php
									}
									else
										echo "erreur inscri";
									
								}
								else
									echo "erreur pwd";
							}
							else{
								echo "erreur membre";
							}
							?>
						</div>
					</div>
					<!-- fin connexion -->
				</div>
				<!-- fin contenu de la page -->
			</div>
		</div>
		<!-- fin centre de la page -->
	</body>
</html>