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
|
<?php
include("./includes/haut.php");
}
else
{
if(isset($_POST['requete']))
{
mysql_connect("", "", "");
mysql_select_db("");
$nom=$_POST['nom'];
$nom=mysql_real_escape_string($_POST['nom']);
$photo=$_POST['photo'];
$photo=mysql_real_escape_string($_POST['photo']);
$biographie=$_POST['biographie'];
$biographie=mysql_real_escape_string($_POST['biographie']);
$rq="INSERT INTO artiste( nom, photo, biographie) VALUES( '$nom', '$photo', '$biographie')";
mysql_query($rq) or die(mysql_error());
echo"Artiste ajouté avec succès !";
}
echo"<form method='post' action='ajout_artiste.php'>
<label for='nom'>Nom</label><br />
<input type='text' name='nom' id='nom' tabindex='20' value=''/><br >
<label for='photo'>photo</label><br />
<input type='text' name='photo' id='photo' tabindex='20' value=''/><br />
<label for='biographie'>Biographie</label><br />
<textarea name='biographie' id='biographie' cols='35' rows='8' tabindex='70'>
</textarea>
<br /><br />
<input type='submit' value='Ajouter l'artiste' name='requete' />
</form>";
}
include("./includes/bas.php");
?> |
Partager