I'm creating a data file full of email addy's. Basically it's for people to be removed from my mailing list. I have a form, that invokes the function below. Right now it adds the email addy's to the file, but I need it to add a new line after each entry.
What do I need to add to fwrite to get it to start on a new line? Thanks
function remove(){
global $email;
$file = "remove_list.dat";
if(!($fp = fopen($file,"a"))) die("sorry can not open file");
fwrite($fp,"$email");
fclose($fp);
echo "$email you have been removed";
}