<?PHP $sent = $_SESSION['sent']; $adresat = 'b3niup@o2.pl'; @$email = $_POST['email']; @$content = $_POST['content']; $header = "From: $email \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit"; if ($sent < 2) { $sent++; } else if ($sent > 2) { echo '<p align="center">Niestety skorzystałeś już dzisiaj 2 razy z formularza. Spróbuj jutro !</p>'; } else { <p align="center"><b>NIE</b> wysłano maila!</p>; } $_SESSION['sent'] = $sent; ?>
mam taki skrypt.
1.Wyskakuje błąd w 22 linii. Co jest źle ?
2. Co zrobić, żeby sesja usuwała się codziennie o 24.00 ?