?php // Information to be modified $your_email = "office@beopronet.com"; // email address to which the form data will be sent $subject = "Poruka sa sajta"; // subject of the email that is sent $thanks_page = "thankyou.html"; // path to the thank you page following successful form submission // Nothing needs to be modified below this line if (isset($_POST["submit"])) { $nam = $_POST["name"]; $ema = trim($_POST["email"]); $com = $_POST["comments"]; $loadtime = $_POST["loadtime"]; if (get_magic_quotes_gpc()) { $nam = stripslashes($nam); $ema = stripslashes($ema); $com = stripslashes($com); } $error_msg=array(); if (empty($nam) || !preg_match("/^[\s.'\-\pL]{1,60}$/u", $nam)) { $error_msg[] = "Polje za vaše ime mora sadržati samo slova"; } if (empty($ema) || !filter_var($ema, FILTER_VALIDATE_EMAIL)) { $error_msg[] = "Vaša email adresa nije pravilno napisana"; } $limit = 1000; if (empty($com) || !preg_match("/^[0-9\/\-\s'\(\)!\?\.,:;\pL]+$/u", $com) || (strlen($com) > $limit)) { $error_msg[] = "Niste popunili polje za poruku"; } $totaltime = time() - $loadtime; if($totaltime < 7) { echo("Molimo Vas popunite sva polja!"); exit; } // Assuming there's an error, refresh the page with error list and repeat the form if ($error_msg) { echo ' Greška

Greška prilikom slanja poruke

Niste pravilno pravilno popunili sva polja:

'; exit(); } $email_body = "Name of sender: $nam\n\n" . "Email of sender: $ema\n\n" . "COMMENTS:\n\n" . "$com" ; // Assuming there's no error, send the email and redirect to Thank You page if (!$error_msg) { mail ($your_email, $subject, $email_body, "From: $nam <$ema>" . "\r\n" . "Reply-To: $nam <$ema>" . "Content-Type: text/plain; charset=utf-8"); header ("Location: $thanks_page"); exit(); } } ?> slunj.org | Domen na prodaju

slunj.org

Under construction / This domain is for sale / Domen na prodaju