Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php //secureInput(); $url=""; $lang=""; $date=""; $date=""; $title=""; $description=""; $content=""; $tags=""; $inputs = array( $url => "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 <code><title></code>)"; //} //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.
This paste will be private.
From the Design Piracy series on my blog: