PDA

View Full Version : Using PHP forms to print to .Txt


cfhosting
02-12-2003, 07:05 PM
how can i get the results of a form to be added to a text file, using php?

tonto
02-12-2003, 11:58 PM
try this..
$data = $formfield1.",".$formfield2... ;

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

tonto