<?php
include('fonctions.php');

$login=$_GET['Login'];
$pass=$_GET['Pass'];
$pass2=$_GET['Pass2'];

$erreurLogin = existe_Log($login);
if($erreurLogin === true){
	header("location: inscription.php?erreurPass=2");
}else{
	if($pass!==$pass2){
	header("location: inscription.php?erreurPass=1");
	}else{
	creation_id($login,$pass);
	header("location: EcranAcceuil.html");
	}
}
?>