salut, uite am luat acel newletter de la pustiu78 si l-am modificat dupa cum imi trebuie mie si este urmatorul
<?php
if(isset($_POST['submit']))
{
$message=$_POST['message'];
$subject=$_POST['subject'];
$message=stripslashes($message);
$subject=stripslashes($subject);
$lists=$_POST['lists'];
$message=str_replace("rn","<br>",$message);
if($lists==0)
{
$selectmails="SELECT email from members where abonat!='0'";
}
else
{
$selectmails="SELECT email from members where abonat!='0'";
}
$selectmails2=mysql_query($selectmails) or die("Nu sa reusit selectarea e-mail-urilor");
while($selectmails3=mysql_fetch_array($selectmails2))
{
$headers = "De la: $yourmail \r\n";
$headers.= "Content-Type: text/html; charset=ISO-8859-1 ";
$headers .= "MIME-Version: 1.0 ";
mail("$selectmails3[email]","$subject","$message<br><br><br> Biserica Crestina Baptista BIRUINTA(
http://bisericabiruinta.ro)",$headers);
$setassend="update members set trimis='1' where id='$selectmails3[id]'";
mysql_query($setassend) or die("Imi pare rau nu s-a putut trimite e-mail-ul");
}
print "Mesaj trimis";
}
else
{
print "<form action='sendletter.php' method='post'>";
print "Subiect:<br>";
print "<input type='text' name='subject' size='20'><br>";
print "Lista membri:<br>";
print "<select name='nume'>";
$getlists="SELECT nume from members";
$getlists2=mysql_query($getlists) or die("Could not get lists");
print "<option value='0'>Toti</option>";
while($getlists3=mysql_fetch_array($getlists2))
{
print "<option value='$getlists3[nume]'>$getlists3[nume]</option>";
}
print "</select><br>";
print "Mesaj trimis:<br>";
print "<textarea name='message' rows='8' cols='60' id='7'></textarea><br>";
print '<script language="JavaScript">';
print "generate_wysiwyg('7')";
print "</script>";
print "<input type='submit' name='submit' value='Trimite'></form>";
}
print "</td></tr></table>";
?>
dar am o problema ca imi trimite dar nu tot, adica subiectul imi trimite ce am vrut eu dar mesajul nu mi-l ia si nu stiu de ce! uite-te daca este ceva greseala si daca nu merge iti trimit formatul bd, contactul.php,.js si codul de mai sus! ms mult, astept raspuns. cu stima trif