witam
mam formularz (subskrypcji) a pod nim dwa przycisku submit - jeden to test (żeby wysłało tylko do mnie) a drugi to roześlij (do wszystkich)
gdzie w tym skrypcie jest błąd i co najważnijsze jaki ? :
<?php
$data=date(\"Y-m-d H:i:s\");
$to = \"bronx01@o2.pl\"
$emaile=file(\"emaile.php\");
$wiadomosc = \"
<html>
<head>
<title>Moja subskrypcja</title>
<style type=text/css>
A
:link { color
: black
; font
-weight
: bold
; text
-decoration
: none
; } A:visited { color : black; font-weight: bold; text-decoration: none; }
A:active { color : black; font-weight: bold; text-decoration: none; }
A:hover { color : red; font-weight: bold; text-decoration: none; }
</style>
</head>
<body topmargin=2>
<font size=1 face=verdana>
<br>
$tresc<br>
<hr size=1>
<i>(wygenerowano $data)</i>
</body>
</html>
\";
$naglowek = \"MIME-Version: 1.0n\";
$naglowek .= \"Content-type: text/html; charset=ISO-8859-2n\";
$naglowek .= \"From: Moja Subskrypcja <bronx01@o2.pl>\";
if(isset($_GET['wyslij'])) {
while(list
($key, $email) = each($emaile)) { mail(trim($email), $tytul, $wiadomosc, $naglowek); }
}
{
mail ($to, $tytul, $wiadomosc, $naglowek);
}
echo \"<CENTER>E-maile zostały rozesłane</CENTER>\";
?>
pozdrawiam