Euro-corturi.ro

  • Tel/Fax : 0040 311.035.267/266
  • Mobil : 0744.539.565
'florinbalan@ana-catering.ro', 2 => 'florinbalan@ana-catering.ro', 3 => 'florinbalan@ana-catering.ro'); $id_cerere = (int) $_POST['userCerere']; //array cu tipul cererii $tip_cerere = array( 1 => 'Cerere de inchiriere', 2 => 'Cerere de cumparare', 3 => 'Cerere de informatii'); //set subject for email as the subject from the form $mail_subject = $tip_cerere[$id_cerere]." - ".$_POST['userName']; //set sendmail path ini_set("sendmail_path", $mail_path); //function to check email format function check_email($str) { if(ereg("^.+@.+\\..+$", $str)) return 1; else return 0; } //get sbumit time from session $submittime = $_SESSION['submittime']; //get current time from time() $currenttime = time(); //work out allowed time by taking 60 away from current time $allowedtime = $currenttime - 60; ?>
$allowedtime){ $message = "¤ puteti trimite un alt mesaj la 1 minut dupa acesta !"; $userName = $_POST['userName']; $userEmail = $_POST['userEmail']; $userMessage = $_POST['userMessage']; $userFirma = $_POST['userFirma']; $userAdresa = $_POST['userAdresa']; $userTelfax = $_POST['userTelfax']; $userMobil = $_POST['userMobil']; //send mail }else{ $_POST['userName'] = preg_replace('/[^a-z0-9 ]/i', '', $_POST['userName']); #$_POST['userEmail'] = preg_replace('/[^a-z0-9@.+-_]/i', '', $_POST['userEmail']); $_POST['userEmail'] = addslashes($_POST['userEmail']); $mail_mesaju = "Persoana de contact: ".$_POST['userName']."\n" ."Firma: ".$_POST['userFirma']."\n" ."Adresa: ".$_POST['userAdresa']."\n" ."Tel/Fax: ".$_POST['userTelfax']."\n" ."Mobil: ".$_POST['userMobil']."\n" ."E-mail: ".$_POST['userEmail']."\n" ."_______________________________\n\n" ." + ".$tip_cerere[$id_cerere]." + \n\n"; if ($id_cerere == 1) { $mail_mesaju .= "Data: ".$_POST['userData']."\n" ."Suprafata: ".$_POST['userSuprafata']."\n" ."Locatie: ".$_POST['userLocatie']."\n"; }elseif($id_cerere == 2) { $mail_mesaju .= "Tip cort: ".$_POST['userTipCort']."\n" ."Dimensiune: ".$_POST['userDimensiune']."\n" ."Bucati: ".$_POST['userBucati']."\n"; } $mail_mesaju .= "_______________________________\n\n" ."Mesaj:\n".$_POST['userMessage']; if(mail($mail_to[$id_cerere], $mail_subject, $mail_mesaju, "From:".$_POST['userName']." <".$_POST['userEmail'].">")){ $message = "Mesaj trimis cu succes. Veti fi contactati cat de curand de un reprezentant. Va multumim pentru interesul acordat!"; $userName = ""; $userEmail = ""; $userMessage = ""; $userFirma = ""; $userAdresa = ""; $userTelfax = ""; $userMobil = ""; $_SESSION['submittime'] = time(); //if error provide link }else{ $message = "*** eroare de server ***
Click aici pentru a trimite acest mesaj cu clientul de e-mail favorit! (Outlook, Eudora, etc. )."; $userName = ""; $userEmail = ""; $userMessage = ""; $userFirma = ""; $userAdresa = ""; $userTelfax = ""; $userMobil = ""; } } } //if message set, echo it if (isset($message)){ echo $message; } ?>
">
*
 
 
 
 
*
*
(Ex: 25/12/2005)
 
(Ex: Bucuresti)