функция умерла ($error) {
// ваше Кодий ошибки может пойти здесь?
?? Я ХОЧУ ПОЛОЖИТЬ СТРАНИЦУ HTML ЗДЕСЬ С ОШИБКАМИ
? >
все HTML, котор вы хотите
echo "We are very sorry, but there were error(s) found with the form your submitted. ";
echo "These errors appear below.
";
echo $error."
";
echo "Please go back and fix these errors.
";
die();
}
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['telephone']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form your submitted.');
}
|