Provo a postarti il codice il primo file si chiama newsletter.php
<?php
session_start();
include("../config/config.inc.php");
?>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form name="newsletter" action="checkNewsletter.php" method="post">
<table width="100%" border="0">
<tr> <td>

<table width="45%" border="0" align="center" cellpadding="8" cellspacing="0">
<tr>
<td>Oggetto</td>
</tr>
<tr>
<td> <input type="text" name="oggetto" size="65"> </td>
</tr>
<tr>
<td>Testo</td>
</tr>
<tr>
<td><textarea name="testo" cols="60" rows="10"></textarea></td>
</tr>
<tr>
<td>
<?php
$oggetto=$_REQUEST['oggetto'];
$testo=$_REQUEST['testo'];

$query ="SELECT mail FROM utenti";
$risultato = mysql_query($query);
$i = 1;
while ($row = mysql_fetch_array($risultato))
{
echo $row['mail'] . "<input type=checkbox name=check id=$i>
\n";
}
?></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Procedi" action="checkNewsletter.php"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
Nel decondo file che si chiama checkNewletter.php vorrei recuperare le mail estratte ed inviare una mail solo alle mail che hanno il check.
<?php
session_start();
include("../config/config.inc.php");

$oggetto=$_REQUEST['oggetto'];
$testo=$_REQUEST['testo'];
$check=$_REQUEST['check'];
$mail=$_POST['mail'];


(mail($mail, $oggetto, $testo))

?>
Ma qui casca l'asino non so proprio più dove sbattere la testa non riesco a trovare un modo..so che questo secondo file non è completo ma non so proprio cosa fare....ho provato in mille modi....