Wrap text
Report abuse
"URL",
$lang => "Langue",
$date => "Date",
$title => "Titre du billet",
$description => "Description",
$content => "Content",
$tags => "Tags"
);
// L'exception de la checkbox
//if ($same_title != "true") {
// $inputs[$title_head] = "Titre (balise <title>)";
//}
//else { $title_head = $title; }
// On teste les champs vides
$i = 0;
foreach($inputs as $key=>$val) {
//if (empty($key)) {
$i++;
echo $i;
echo "Le champ $val est vide. ";
//}
}
/*$inputCorrect = testInput();
if($inputCorrect === TRUE) {
postPage();
}*/
?>
Renvoies : 1Le champ Tags est vide.