Voiçi mon code:
<?php
$form = true;
if(isset($_POST['departement'],$_POST['type'], $_POST['title'], $_POST['description'])){
if(get_magic_quotes_gpc()){
$departement = stripslashes($_POST['departement']);
$type = stripslashes($_POST['type']);
$street = stripslashes($_POST['street']);
$city = stripslashes($_POST['city']);
$postcode = stripslashes($_POST['postcode']);
$title = stripslashes($_POST['title']);
$website = stripslashes($_POST['website']);
$sousTitre = stripslashes($_POST['sous-titre']);;
$description = stripslashes($_POST['description']);
$price = stripslashes($_POST['price']);
$email = stripslashes($_POST['email']);
$phone = stripslashes($_POST['phone']);
$date_debut_sortie = stripslashes($_POST['date_debut_sortie']);
}else{
$departement = $_POST['departement'];
$type = $_POST['type'];
$street = $_POST['street'];
$city = $_POST['city'];
$postcode = $_POST['postcode'];
$title = $_POST['title'];
$website = $_POST['website'];
$sousTitre = $_POST['sous-titre'];;
$description = $_POST['description'];
$price = $_POST['price'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$date_debut_sortie = $_POST['date_debut_sortie'];
$nom_photo = "{$_SESSION['userid']}-{$_FILES['photo']['name']}";
if(mysql_query('INSERT INTO loisirs (id_loisirs, id_departements, id_type_loisirs, photo, titre, sous_titre, description, phone, date_debut_sortie, email, website, street, postcode, city, price, valide)
VALUE("", '.$departement.', '.$type.', "'.$nom_photo.'", "'.$title.'", "'.$sousTitre.'","'.$description.'", "'.$phone.'","'.$date_debut_sortie.'", "'.$email.'", "'.$website.'", "'.$street.'", "'.$postcode.'", "'.$city.'", "'.$price.'", 0)')){
<input type="text" class="datepicker" name="date_debut_sortie">