kits graphiques gratuits logo kit graphique 9 kit graphique 9 kit graphique 9
kits graphiques menu kits graphiques flash menu animations flash menu kits graphiques css (css templates)

Go Back   Kits graphiques gratuits > Forums kits gratuits > Kits graphiques gratuits flash
Register Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-23-2010, 05:52 PM
electro-acoustic electro-acoustic is offline
Junior Member
 
Join Date: Dec 2009
Posts: 10
electro-acoustic is on a distinguished road
Question Champs obligatoires dans template (suite)

Bonjour, jai bien suivi vos conseils en remplaçant :

empty($nombredejours)
par
empty($_POST['nombredejours'])
etc...
Mais le code PHP que voici demeure toujours invalide :


<?

$your_email = "contact@monsite.com";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Contact Message</title>
</head>
<body>

CONTACT<br><br>
Stage : ".$_POST['stage']."<br>
Master Class : ".$_POST['master class']."<br>
Nombre de jours : ".$_POST['nombredejours']."<br><br>
Jour : ".$_POST['jour']."<br>
Mois : <br>".$_POST['mois']."<br>
Annee : ".$_POST['annee']."<br>
Jour : ".$_POST['jour']."<br>
Mois : ".$_POST['mois']."<br><br>
Annee : ".$_POST['annee']."<br>
Instrument : <br>".$_POST['instrument']."<br>
Niveau : ".$_POST['niveau']."<br>
Nom : ".$_POST['nom']."<br>
Prenom : ".$_POST['prenom']."<br><br>
Adresse : ".$_POST['adresse']."<br>
Code Postal : <br>".$_POST['codepostal']."<br>
Ville : ".$_POST['ville']."<br>
Pays : ".$_POST['pays']."<br>
Tel : ".$_POST['tel1']."<br><br>
ou : ".$_POST['tel2']."<br>
Email : <br>".$_POST['email']."<br>

if (empty($_POST['nombredejours']) || empty($_POST['jour']) || empty($_POST['mois']) || empty($_POST['annee']) || empty($_POST['jour']) || empty($_POST['mois']) || empty($_POST['annee']) || empty($_POST['instrument']) || empty($_POST['niveau']) || empty($_POST['nom']) || empty($_POST['prenom']) || empty($_POST['ville']) || empty($_POST['email'])) ) {
echo "<p class='red'>Vous n'avez pas complété toutes les zones&nbsp;:</p>";
$erreur=1;
}


</body>
</html>" , $headers);
header("Location: ./index.htm?page=_message-reservation-stages.htm");
?>



Merci de me faire remarquer l'erreur que j'ai comise.
 

Tags
champs, obligatoires


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.