Hi
Here is the content of submit_footer.php (I cant' see "Thanks! Your email was successfully sent"!)
<?php
/**
* Contact Widget Form Submit
*/
$emailTo = 'info@frigoliascensori.it';
//Check to see if the honeypot captcha field was filled in
if(trim($_POST['checking']) !== '') {
$captchaError = true;
} else {
//Check to make sure that the name field is not empty
if(trim($_POST['contactNameWidget']) === '') {
$nameError = 'Inserisci il tuo nome.';
$hasError = true;
} else {
$name = trim($_POST['contactNameWidget']);
}
//Check to make sure sure that a valid email address is submitted
if(trim($_POST['emailWidget']) === '') {
$emailError = 'Inserisci il tuo indirizzo email.';
$hasError = true;
} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['emailWidget']))) {
$emailError = 'Inserisci un indirizzo email valido.';
$hasError = true;
} else {
$email = trim($_POST['emailWidget']);
}
//Check to make sure comments were entered
if(trim($_POST['commentsWidget']) === '') {
$commentError = 'Inserisci il testo del messaggio.';
$hasError = true;
} else {
if(function_exists('stripslashes')) {
$comments = stripslashes(trim($_POST['commentsWidget']));
} else {
$comments = trim($_POST['commentsWidget']);
}
}
//If there is no error, send the email
if(!isset($hasError)) {
$subject = 'Richiesta informazioni dal sito da parte di '.$name;
$sendCopy = trim($_POST['sendCopy']);
$body = "Nome: $name \n\nEmail: $email \n\nRichiesta: $comments";
$headers = 'From: frigoliascensori.com <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;
mail($emailTo, $subject, $body, $headers);
if($sendCopy == true) {
$subject = 'You emailed Your Name';
$headers = 'From: Your Name <noreply@frigoliascensori.com>';
mail($email, $subject, $body, $headers);
}
$emailSent = true;
}
}
?>
2: the link
http://www.frigoliascensori.com/prova/ffsite/form.html
try to send first (in the main body content) and second form (in the footer) with empty field
:)