Dynadot โ€” .com Transfer

Need help quick!!!

SpaceshipSpaceship
Watch
Impact
13
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?

Code:
<?php
$input = $_POST["site"];


$fp = fopen( "sites.txt" , "a" );
fwrite( $fp, $input );

fclose( $fp );

echo "done, thanks for your contribution to our site!";
?>

I need this asap. can anyone help!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Easiest way would be to append a newline char to it:

PHP:
$input = $_POST["site"]."\n";
 
0
•••
Yeah just got that from a tutorial, cheers anyway!
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back