Using PHP forms to print to .Txt

how can i get the results of a form to be added to a text file, using php?try this..
$data = $formfield1.",".$formfield2... ;

$fp = fopen("filename.txt","a") ;
fwrite($fp,$data) ;
fclose($fp) ;

tonto
 
Back
Top