Codice PHP:

<?PHP

$nom
=$_POST['nome'];
$cogn=$_POST['cognome'];
$file=fopen("testo.txt","a+");
fwrite($file"user: $nome" password: $cognome");
echo 
"Messaggio inviato!";
?>
come faccio ogni qual volta che vengono scritte le variabili sul .txt ci sia un ritorno a capo?

grazie