$ip = $_SERVER['REMOTE_ADDR'];
if(isset($_POST['slanje'])) {
$slanje = $_POST['slanje'];
}
else if(!isset($_POST['slanje'])) {
$slanje="";
}
if(isset($_POST['ime'])) {
$ime = $_POST['ime'];
}
else if(!isset($_POST['ime'])) {
$ime="";
}
if(isset($_POST['firma'])) {
$firma = $_POST['firma'];
}
else if(!isset($_POST['firma'])) {
$firma="";
}
if(isset($_POST['grad'])) {
$grad = $_POST['grad'];
}
else if(!isset($_POST['grad'])) {
$grad="";
}
if(isset($_POST['drzava'])) {
$drzava = $_POST['drzava'];
}
else if(!isset($_POST['drzava'])) {
$drzava="";
}
if(isset($_POST['tel'])) {
$tel = $_POST['tel'];
}
else if(!isset($_POST['tel'])) {
$tel="";
}
if(isset($_POST['email'])) {
$email = $_POST['email'];
}
else if(!isset($_POST['email'])) {
$email="";
}
if(isset($_POST['kat'])) {
$kat = $_POST['kat'];
}
else if(!isset($_POST['kat'])) {
$kat="";
}
if(isset($_POST['poruka'])) {
$poruka = $_POST['poruka'];
}
else if(!isset($_POST['poruka'])) {
$poruka="";
}
$displayform = "1";
if ($slanje == "1" ) {
if ($ime=="" or $firma=="" or $grad=="" or $drzava=="" or $tel=="" or $email=="" or $kat=="" or $poruka=="") {
echo "Morate uneti sva naznačena polja!";
$displayform = "1";
}
else if ($kat == "a" ){
mail("rade.joksimovic@inmold-ltd.com", "Alati - poruka sa sajta" , "
ip adresa:$ip \n \n
Ime: $ime \n
Firma: $firma \n
Grad: $grad \n
Drzava: $drzava \n
Telefon: $tel \n \n
E-mail: $email \n
$poruka
", "FROM: $ime <$email>");
echo "Poruka uspešno poslata!";
$displayform = "0";
}
else if ($kat == "r" ){
mail("milos.djokic@inmold-ltd.com", "Roboti - poruka sa sajta" , "
ip adresa:$ip \n \n
Ime: $ime \n
Firma: $firma \n
Grad: $grad \n
Drzava: $drzava \n
Telefon: $tel \n \n
E-mail: $email \n
$poruka
", "FROM: $ime <$email>");
echo "Poruka uspešno poslata!";
$displayform = "0";
}
else if ($kat == "o" ){
mail("office@inmold-ltd.com", "Poruka sa sajta" , "
ip adresa:$ip \n \n
Ime: $ime \n
Firma: $firma \n
Grad: $grad \n
Drzava: $drzava \n
Telefon: $tel \n \n
E-mail: $email \n
$poruka
", "FROM: $ime <$email>");
echo "Poruka uspešno poslata!";
$displayform = "0";
}
}
if ($displayform == "1" ) {
?>
}
?> |