il mio era un esempio
fai così (ma cosa è texdata????)
Codice PHP:
<?php
// giornata cronaca
$text=""
$text1 $_REQUEST['textdata'];
$text .= $text1['name'], "
"
;
// area di testo
//$text = $_REQUEST['textdata'];
$text .= $text1['txt'], "
"
;
?>
--------------------
da form mi stampa sul file temp, il testo che io scrivo, è questa parte che non va......
<?php
------------------------------------------------
$text. = "1°tempo\r\n"// dove scrive il txt 1° tempo 
------------------------------------------------------------
// Apro il file con opzione "w" (quindi se esiste del testo verrà cancellato)
// per aggiungere del testo alla fine del file dovete sostituire "w" con "a"
$identificatore fopen("messaggi.txt""a");

// Scrivo i dati nel file
fwrite($identificatore$text);

// Chiudo il file
fclose($identificatore);
?>