Beispiel #1
0
					<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>