Witam,
Mój problem polega (pewnie eksperci od PHP bedą wiedzieć o co chodzi) na tym że wywala mi błąd
"Parse error: syntax error, unexpected T_ECHO in /homez.232/chopa/www/streszczenia/form_kontakt.php on line 70"
Linijka 70 to
<?php
?>
tego kodu:
<?php
$dokogo = $_POST['email'];
$temat = $_POST['temat'];
$temat2 = $_POST['wlasny_temat'];
$odkogo = $_POST['mail_nadawcy'];
$wiadomosc = $_POST['wiadomosc'];
if ($dokogo == 1) then
elseif
($temat == 1) then
elseif
($temat == 1) and ($temat2 == \"\") then
echo \"Wpisz własny temat, bądź wybierz go opcję wyżej\" elseif
($wiadomosc == \"\") then
echo \"Prosze wpisać wiadomość\" elseif
($_SESSION['token'] !== $_POST['token']) then
echo \"Kod zabezpieczający jest nieprawidłowy\" else
$tresc = \"Email od $odkogo,\n Temat: $temat, $temat2\n Napisał:\n $wiadomosc\n\";
$headers = \"Content-type: text/plain; charset=\"iso-8859-2\"\n\";
$headers .= \"Content-Transfer-Encoding: 8bit\";
$headers .= \"Content-encoding: iso-8859-2\n\";
$headers .= \"From: Chopa.pl\n\";
$headers .= \"Reply-To: cos \n\";
$headers .= \"X-Priority: 3\n\";
mail($dokogo , $temat , $tresc, $headers); echo \"Mail został wysłany\" ?>
Ten post edytował Spawnm 1.08.2009, 16:40:49