Harta Google
|
Formular de contact
if (isset($_POST['submit_x'])){
$mesaj = "";
$nume =$_POST['nume'];
$adresa = $_POST['email'];
$companie = $_POST['companie'];
$telefon = $_POST['telefon'];
$text = $_POST['text'];
$cod = $_POST['cod'];
$ip = $_SERVER['REMOTE_ADDR'];
if ($nume == "" || $nume == "Nume" && $mesaj == ""){
$mesaj = 'Va rog introduceti numele.';
}
if ($companie == "" || $companie == "Companie" && $mesaj == ""){
$mesaj = 'Va rog introduceti numele companiei.';
}
if ($telefon == "" || $telefon == "Telefon" && $mesaj == ""){
$mesaj = 'Va rog introduceti nr. de telefon.';
}
if ($adresa == "" || $adresa == "E-mail" && $mesaj == ""){
$mesaj = 'Va rog introduceti adresa de email.';
}
if (strtolower($cod) != strtolower($_SESSION['captcha']) && $mesaj == ""){
$mesaj = 'Codul de securitate este incorect.';
}
if ($text == "" || $text == "Mesaj" && $mesaj == ""){
$mesaj = 'Va rog introduceti textul mesajului.';
}
if ($mesaj ==""){
$email="$adresa";
$companie="$companie";
$telefon="$telefon";
$name="$nume";
$To = "bl@iws.ro";
$To = "adriangontariu@gmail.com";
$To = "office@socad.ro";
$text = nl2br($text);
// Setarile mailului
$headers = "From: $name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: IWS\n"; // mailer
//$headers .= "X-Priority: 1\n"; // Urgent message
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type // Asta-i pentru mail in format HTML
$Body = "Nume: $nume\n Companie: $companie\n Email: $email\n Telefon: $telefon\n Mesajul: $text\n\n --------------- IP: $ip
";
$Subject = "Formular de contact";
if (@mail($To, $Subject, $Body, $headers)) {
echo 'Mesajul a fost trimis. Vom incerca sa va raspundem in urmatoarele 24 de ore. Va multumim. ';
unset($_SESSION['captcha']);
$nume ="";
$companie = "";
$telefon = "";
$email = "";
$adresa = "";
$text = "";
} else {
echo 'Mesajul nu a putut fi trimis momentan. Ne cerem scuze si va rugam sa reveniti mai tarziu. ';
}
}else{
echo "$mesaj";
}
}
?>
|
Date de contact
SOCAD LOGISTICS SRL
Adresa:
Bd. Timisoara, nr.90, sector 6, Bucuresti
CIF/CUI: RO26209818
Tel./Fax: 021-444.33.27
Mobil: 0723-373.825, 0721-203.166, 0735-342.952, 0726-711.185
E-mail: office  socad.ro
|