TechnoMetal S.r.l.
Via del Lavoro, 11
61041 Acqualagna (PU) - Italia
Cod. Fisc. e Part. IVA 02507420418
Tel: +39 0721.796007
Fax: + 39 0721.798560
E-mail: info@technometal.it
Web: www.technometal.it
if ( isset( $_POST ) && count($_POST) > 0) {
if (isset($_POST['email']) && $_POST['email'] != '') {
//# checks for valid email address
if( !(ereg("^(.+)@(.+)\\.(.+)$",$_POST['email'])) ) {
die("Wrong e-mail, please retry<(strong>.");
}
$titolo = "RICHIESTA INFORMAZIONI DAL SITO";
$campi = array("nome"=>"Nome","cognome"=>"Cognome","azienda"=>"Azienda","indirizzo"=>"Indirizzo","cap"=>"CAP","citta"=>"Cittā","provincia"=>"Provincia","telefono"=>"Telefono","fax"=>"Fax","email"=>"E-mail","messaggio"=>"Messaggio");
$today = date ("d/m/Y");
$strMessageBody = "";
$strMessageBody .= $titolo."\n";
$strMessageBody .= "\n";
$strMessageBody .= "Data: $today \n";
$strMessageBody .= " \n";
$strMessageBody .= "Dati inseriti: \n";
$strMessageBody .= "------------------------------------------------------------------------------------ \n";
foreach ($campi as $key => $value) {
if (is_array($_POST[$key])) {
$strMessageBody .= $value.": ".implode(",", $_POST[$key])."\n";
} else {
$strMessageBody .= $value.": ".$_POST[$key]."\n";
}
}
$mailheaders = "From: ".$_POST['email']."\n";
$subject = "Contatto dal sito technometal.it - Versione inglese";
if (mail("info@technometal.it", $subject, $strMessageBody, $mailheaders)) {
echo("
Thank you for your request. You'll receive information as soon as possible."); } else { echo("
Your message has not been delivered. We apologize for disadvantage."); } //echo($strMessageBody); } else { echo("
Your message has not been delivered. We apologize for disadvantage."); } } else { ?>
Thank you for your request. You'll receive information as soon as possible."); } else { echo("
Your message has not been delivered. We apologize for disadvantage."); } //echo($strMessageBody); } else { echo("
Your message has not been delivered. We apologize for disadvantage."); } } else { ?>
For information please complete the following form
(Please fill in all fields marked with *)