<?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>