The code below works great, except, it won't write more than one line to the file. If I re-submit with new information, it posts it, but I was hoping to keep a log of all the information submitted. So therefore, I need it to go to the next line after a submit, and write the information.
<?php
$NEWFILE = fopen("newdata.txt","w"); // open newdata.txt for writing
$data = "$Customer|$Item_Code|$Invoice_Number|$Date_Received";
fputs($NEWFILE,"$data\n"); // write line to newdata.txt
fclose($NEWFILE);
?>
thanks for any help you can give