if($_POST['wyslij']) {
if(!$_POST['email']) $inf="Proszę wypełnić pole: Twój e-mail.";
if( !$_POST['temat']) $inf="Proszę wypełnić pole: Temat.";
if( !$_POST['opis']) $inf="Proszę wypełnić pole: Treść wiadomości.";
if(!$inf )
{
$info_end = "sukces";
}
}
?>
Kontakt - F.H.U. "HAJDUK" S.C. Tarnów
include("gora.php");
?>
|
if(!$info_end) {
if ($inf)
{
echo "
";
}
?>
}
else
{
$temat=strip_tags(addslashes($_POST['temat']));
$do="hajdukowie@poczta.onet.pl";
$opis=strip_tags(addslashes($_POST['opis']));
$email=$_POST['email'];
$od="From:".$email;
$tresc = '
'.nl2br(($opis)).'
';
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type: text/html; charset=iso-8859-2 \r\n";
$temat = strtr($temat, "\xA5\x8C\x8F\xB9\x9C\x9F", "\xA1\xA6\xAC\xB1\xB6\xBC");
if(mail($do, $temat, $tresc, $headers))
{
echo'
|
|
E-mail został pomyślnie wysłany.
Administratorzy serwisu powinni w ci±gu 48 godzin odpowiedzieć na zapytanie.
|
';
}
else
{ echo "
E-mail nie został wysłany. |
| ";
}
}
?>
|
|
|
|
|
include("prawa.php");
?>
include("footer.php");
?>