/* LOGO + MENU */
include('layout/include/header.php');
/* LOGO + MENU */
include('layout/include/menu.php');
?>
wlan.org.pl / kontakt
if (empty($_POST['submit'])) {
?>
Formularz kontaktowy
}
elseif (isset($_POST['tresc']) && isset($_POST['imie']) && isset($_POST['email'])) {
$system = $_SERVER["HTTP_USER_AGENT"];
$ip = $_SERVER["REMOTE_ADDR"];
$nazwa = gethostbyaddr($ip);
$message = "\n$_POST[tresc]\n\nWyslal: $_POST[imie]\ne-mail: $_POST[email]\n\nIP: $ip\nHost: $nazwa\nSystem/przegladarka: $system";
$header .= "From: [wlan.org.pl] KONTAKT
\r\n";
$header .= "X-Priority: 3\r\n";
$header .= "Content-type: text/plain; charset=UTF-8\r\n";
$header .= "Reply-To: $_POST[email]\r\n";
$header .= "X-Mailer: ToM Mailer - orlow.pl\r\n";
@mail($admin_mail,"Wiadomość ze strony WWW","$message","$header")
or die('Nie udało się wysłać wiadomości
');
echo 'Wiadomość została wysłana poprawnie!
';
}
else echo 'Wypełnij wszystkie pola formularza!
';
?>
/* STOPKA */
include('layout/include/footer.php');
?>