Fonction $_POST mal interpretée
Posté : 21 avr. 2007, 23:33
bonsoir,
j'ai ce code
Lorsque ma valeur dossier est NULL ma boucle else if n'est pas prise en compte et le script continue.
D'ou ca peut venir j'ai tout essayé
j'ai ce code
Code : Tout sélectionner
$_POST['nom']=trim($_POST['nom']);
$_POST['mots']=trim($_POST['mots']);
$_POST['dossier']=trim($_POST['dossier']);
$_POST['titre']=trim($_POST['titre']);
if(empty($_POST['nom']) || empty($_POST['mots']) || empty($_POST['titre']))
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=ajout.php?result=error&rubrique=$rub\">\n ";
}
else if($_POST['dossier'] == NULL)
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=ajout.php?result=error&rubrique=$rub\">\n ";
}D'ou ca peut venir j'ai tout essayé