vysek kódu
Kód: Vybrať všetko
if (!$_POST['Meno'] || $_POST['Meno'] == "" || !$_POST['Priezvisko'] || $_POST['Priezvisko'] == "" || !$_POST['Ulica'] || $_POST['Ulica'] == "" || !$_POST['PSC'] || $_POST['PSC'] == "" || !$_POST['Mesto'] || $_POST['Mesto'] == "" )
{
echo '<P>Vyplnte vsetky potrebne udaje oznacene hviezdickou !</P>';
}
else {
$header .= "Content-Type: text/plain; charset='iso-8859-2'n";
$header .= "MIME-Version: 1.0n";
$header .= "X-Priority: 3n";
$header .= "X-MSMail-Priority: Normaln";
$adresat = "mail@mail.sk"; //mail
$adresat = "mail@mail.sk"; //mail
$predmet = "Objednavka katalógu";
$text2 =$_POST['Oslovenie'];
$text3 =$_POST['Meno'];
$text4 =$_POST['Priezvisko'];
$text5 =$_POST['Mesto'];
$text6 =$_POST['PSC'];
$text7 =$_POST['Ulica'];
$text8 =$_POST['Titul'];
$text10 =$_POST['E-mail'];
$text11 =$_POST['Telefón'];
$text12 =$_POST['1'];
$text13 =$_POST['2'];
$text14 =$_POST['3'];
$text = iconv("windows-1250", "iso-8859-2", "Objednavam si katalóg $text12 $text13 $text14\n
Meno : $text2 $text8 $text3 $text4
Adresa : $text7, $text5 $text6
Telefón : $text11
E-mail : $text10");
$telo = $text;
mail($adresat, $predmet, $telo, 'From: nieco@nieco.sk ');
// presmerujeme na accepted
header("Location:/index.html");
}
exit();