1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| <!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<h2>
Ajout de formation
</h2>
<form method="post">
<label>Session <input type="text" name="num_session"/></label><br/>
<label>Formateur: <input type="text" name="num_formateur"/></label><br/>
<label>Salle <input type="texte" name="num_salles"/></label><br/>
<label>heure debut: <input type="text" name="heure_debut"/></label><br/>
<label>heure fin: <input type="text" name="heure_fin"/></label><br/>
<label>date: <input type="text" name="date_debut"/></label><br/>
<label>formation: <input type="text" name="formation"/></label><br/>
<label>jours: <input type="text" name="jours"/></label><br/>
<input type="submit" value="ajouter une formation"/>
</form>
<?php
// D'abord, je me connecte à la base de données.
mysql_connect("localhost", "root", "root");
mysql_select_db("bddplanning");
mysql_query("INSERT INTO cours VALUES('', '$num_session', '$num_formateur', '$num_salles','$heure_debut','$heure_fin','$date_debut',$formation','$jours')");
?>
</body>
</html> |
Partager