-
New lines?
I'm useing the code below to add people to my mailing list, however it will not automaticly make a new line for the new entry.
any ideas on how I can do that?
PHP Code:
<?php
$text = implode(":", $_POST);
$text += "\n";
$fp = fopen ("list.txt", "a+");
fwrite($fp, implode(":", $_POST));
fclose($fp);
?>
<?php echo implode(":", $_POST);?>
-
-
I've never had a problem just using \n :confused:
But yeah, that'll probably fix it.
-
Consider using a MySQL database, if you have that option. It's much, much friendlier. more friendly...whatever the grammatically correct way to say that is. You know...