示例#1
0
 <?php 
session_start();
include 'Classe/Connexion_bdd.class.php';
include 'Classe/User.class.php';
$uneConnexion = new BDD("localhost", "testgarage", "root", "");
$uneConnexion->renseigner("clients", "email");
if (isset($_POST['connexion'])) {
    $unUser = new User();
    $unresultat = $uneConnexion->selectWhere($_POST['email']);
    $unUser->renseigner($unresultat);
    if ($unresultat == true) {
        if ($_POST['mdp'] == $unresultat['mdp']) {
            $_SESSION['auth'] = $unresultat;
            header('Location: index.php');
        } else {
            $message = "Mot de Passe érroné !";
        }
    } else {
        $message = "Vous n'êtes pas inscrit !";
    }
}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<title>Garageatouprix</title>
		<link rel="stylesheet" href="style.css" />
	</head>
	
	<body>
示例#2
0
文件: choix.php 项目: Webtech00/PPE
					<input type="checkbox" name="service" value="vidange"/>
					<input type="checkbox" name="service" value="batterie"/>
					<input type="checkbox" name="service" value="pneu"/>
					<input type="checkbox" name="service" value="clim"/>
					<input class="btchoix" type="submit" name="oky" value="valider"/>
				</form>
		</div>	
							
			<?php 
    //
    if (isset($_GET['oky'])) {
        //if($_POST['Garage'] and $_POST['service'] == NotNull)
        //	{
        $unChoixPresta = new ChoixPresta();
        $unChoixPresta->renseigner($_GET);
        $uneConnexion = new BDD("localhost", "testgarage", "root", "");
        $uneConnexion->renseigner("choixpresta", "IDP");
        $tab = $unChoixPresta->serialiser();
        //$tab['dateinscription']=date("Y-m-d");
        //echo $_POST['Garage'];
        $uneConnexion->insert3($tab, $val);
        $message = "Inscription Validée";
    }
}
?>
			<?php 
include "footer.php";
?>
		
	</body>
</html>
示例#3
0
				<label for="Immatriculation"> Immatriculation* </label><br/>
				<input type="text" name="immatriculation" id="immatriculation"  maxlength="7" required /><br/>
			
				
			</div>
			<div class=btvalider>
				<input class=btchoix type="submit" name="valider" value="VALIDER">
			</div>
			
			<?php 
if (isset($_POST['valider']) && strlen($_POST['modele']) < 25) {
    if (preg_match("#^[A-Z]{1,2}[0-9]{1,3}[A-Z]{1,2}\$#", $_POST['immatriculation'])) {
        $unAuto = new auto();
        $unAuto->renseigner($_POST);
        $uneConnexion = new BDD("localhost", "testgarage", "root", "");
        $uneConnexion->renseigner("vehicule", "marque");
        $tab = $unAuto->serialiser();
        //$tab['dateinscription']=date("Y-m-d");
        $IDG = "";
        $IDP = "";
        $IDC = "";
        $uneConnexion->insert2($tab, $IDG, $IDP, $IDC);
        $message = "Inscription Validée";
        $_SESSION['auth'] = $tab;
    } else {
        $message = "Immatriculation invalide";
    }
}
?>
			
			<?php 
示例#4
0
<?php

session_start();
include 'Classe/Connexion_bdd.class.php';
include 'Classe/User.class.php';
$uneConnexion = new BDD("localhost", "testgarage", "root", "");
$uneConnexion->renseigner("client", "nom");
?>



<!DOCTYPE html>
<html>
    <head>
	    
        <meta charset="utf-8" />
        <title>Garage à tout prix</title>
		<link rel="stylesheet" href="style.css" /> 
    </head>

	
    <body>
		<?php 
include "menu.php";
?>
		
		<p class=pi>Afin de pouvoir réserver et d'accéder à nos services, pensez d'abord à vous enregistrer auprès de notre garage ! </p>
		
		<form class="formulaire" method="post" action="inscription.php">
			
			<h1> Vos informations </h1>