How can I store information in a text file but with line breaks?
//PHP Code
<?php
$FileUser=$POST["username"].".txt";
$fh=fopen($FileUser, "w");
$stringData = $POST["firstname"];
fwrite($fh, $stringData);
$stringData = $POST["middlename"];
fwrite($fh, $stringData)." ";
$stringData = $POST["lastname"];
fwrite($fh, $stringData)." ";
?>
//The Output should be:
Tracy
Tulip
Tanner
//But using the code above, it showed:
TracyTulipTanner
How can I separate the words in line breaks???? HELP! 😕