Ejemplo n.º 1
0
</script>
</head>

<body>

	<?php 
require_once "bd_utils.php";
require_once "tools.php";
$obj_utils = new bd_utils();
$obj_utils->connect();
if (isset($_POST['nom']) && isset($_POST['prenom']) && isset($_POST['sexe']) && isset($_POST['dossard'])) {
    $date = $_POST['y'] . $_POST['m'] . $_POST['d'];
    $club = "";
    $distance = $_POST['distance'];
    $obj_utils->saveRunner($_POST['nom'], $_POST['prenom'], $date, $_POST['sexe'], $_POST['dossard'], $club, $distance);
}
?>

	<h1>Inscriptions</h1>
	<form action="./index.php?page=inscriptions.php" method="post">
		<br> <a href="#" onClick="closeSearch();">close Suggest</a>
		<table class="principale">
			<tr>
				<td class="style1"><strong>Nom:&nbsp;</strong></td>
				<td><input type="text" id="txtSearch" name="nom"
					alt="Search Criteria" onkeyup="searchSuggest();" autocomplete="off"
					onFocus="showsearch();" />

					<div id="search_suggest"></div>
				</td>