mi sa che sto facendo un po di casino...

ho messo cosi:

<?php
//
// QUESTE RIGHE SALVANO LA EMAIL SU FILE DI TESTO DATI.TXT
//
$email = $_POST['email'];
$data = "$email,".date("d/m/Y", time());
$fh = fopen("dati.txt", "a");
fwrite($fh, $data);
//close the file
fclose($fh);
?>


e sul txt mi scrive cosi

,13/07/2014io@io.it,13/07/2014,13/07/2014