ciao a tutti io ho questo codice qui per inviare le mail a chi è selezionato
Codice PHP:
<?php
$area_indexes 
"1|2|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28";
?>
<html>
<head>
</head>
<body>
<form method="post" action="invio_em.php" name="webmail">
    <input type="hidden" value="numero totale" name="tot">
<table border="0" width="588" cellspacing="0" cellpadding="0">
<tr><td width="78"></td><td width="84"></td><td width="70"></td><td width="168"></td><td width="48"></td></tr>
<tr height="23">
<td >

NOME</p></td>
<td >

COGNOME</p></td>
<td >

SQUADRA</p></td>
<td >

E-MAIL</p></td>
<td >

INVIA MAIL?</p></td>
</tr>
<tr height="95">
<td >

ilnome</p></td>
<td >

ilcognome</p></td>
<td >

lasquadra</p></td>
<td >

[email="dest1@mail.it"] [email]dest1@mail.it[/email][/email]</p></td>
<td >

<div align=center><input type="checkbox" name="ind1" value="dest1@mail.it" /></div></p></td>
</tr>
</table>
<div align=center><input type="button" value="Seleziona\Deseleziona tutti gli indirizzi" onclick="SelezTT()"></div> 

Mittente:
 
<select name="mit">
  <option value="mitt1@mail.it">Mitt1</option>
</select>



Oggetto del messaggio: 

      <input type="text" name="soggetto" size="95" maxlength="100">



Messaggio: 

      <div align=left><textarea name="testo" rows="10" cols="60"></textarea></div>





      <div align=center><input type="submit" value="Invia Messaggio"></div>
<script type="text/javascript">
function SelezTT()
{
    var i = 0;
    var webmail = document.webmail.elements;
    for (i=0; i<webmail.length; i++)
    {
        if(webmail[i].type == "checkbox")
        {
            webmail[i].checked = !(webmail[i].checked);
        }
    }
}
</script>
</form>
</body>
</html>
Ecco io vorrei mettere i destinatari (ilnome, ilcognome, email) tutto estratto da una tabella di un database...come potrei farlo?

Grazie a tutti!