Im using this code i just made when some adds a site, it sends it to the php file and its saves it to a .txt file. perfect. Except i need it to put each new entry on a new line, but i dont know how, can anyone help?
<?php
$input = $_POST["site"];
$fp = fopen( "sites.txt" , "a" );
fwrite( $fp, $input );
fclose( $fp );
echo "done, thanks for your contribution to our site!";
?>
does anyone know?