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 42 43 44 45
| <html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<form id="poster" name="expo" method="post" action="">
<label><strong>Titre</strong>
<input type="text" name="titre" />
</label>
<p>
<label><strong>Niveau</strong>
<select name="niveau" style="position:absolute;left:63px;top:48px;width:200px;z-index:7">
<option value="1ère Année">1ère Année</option>
<option value="2ème Année">2ème Année</option>
<option value="3ème Année">3ème Année</option>
<option value="4ème Année">4ème Année</option>
</select>
</label>
</p>
<p>
<label><strong>Lien</strong>
<input type="text" name="lien" />
</label>
</p>
<p>
<input type="submit" name="envoyer" value="Envoyer">
</p>
</form>
<?php
if isset($_post['titre'],$_post['niveau'],$_post['lien'])
{
$_POST['titre']=$titre ;
$_POST['niveau']=$niveau ;
$_POST['lien']=$lien ;
mysql_connect("localhost", "root", "");
mysql_select_db("exposés");
mysql_query("insert into expos values('','$titre','$lien')");
mysql_close();
}
?>
</body>
</html> |
Partager