Ragazzi mi potete dire perche quando arriva l'email mi arriva solo
Newsletter!!! Oggetto: Messaggio: e quello che scrivo non lo visualizza
praticamente non visualizza il messaggiotxt e oggettotxt
come posso risolvere




Codice PHP:

<? 
// mi collego al database 
$host 'sql.xxxx.com'
$dbuser 'xxxx'
$dbpass 'xxxx'
$dbname 'xxxx'
$table 'news'
$db = @mysql_connect($host,$dbuser,$dbpass) or die("error=could not connect to $host"); 
$db mysql_select_db($dbname); 
?>
<html>
<head>
<title>Newsletter</title>
</head>
<body bgcolor="#FFFFFF">
<h1>Invia la newsletter</h1>
<form action="" method="POST">



<input name="oggettotxt" type="text" id="oggettotxt" style="background-color: white;" size="20" />
oggetto
</p>




<textarea name="messaggiotxt" cols="50" rows="5" id="messaggiotxt" style="background-color: white;"></textarea>
messaggio </p>





<input name="submit" type="submit" style="background-color: cyan;" value="Invia" />
</p>
</form>



<hr>

<?
$msg 
.= "Oggetto: $oggettotxt\n\n";
$msg .= "Messaggio: $messaggiotxt\n\n";
//////////////////////////////
$query "SELECT * FROM news WHERE email != ''";
$result mysql_query($query);
# ho usato != '' cioè diverso da vuoto
# ora cicliamo i risultati trovati con while
while($m mysql_fetch_array($result)){
echo 
$m['email'].'
'
;
mail($m['email'], $subject$msg"Newsletter!!!");


?>