My php form which saves the output in a text file glues the result to one string like:
Name1Email1The Message1Name2Email2The Message2Name3Email3The Message3Name4Emai
You can use "\n" to write a new line.
$data = $_POST['name'] . "\n"; $data .= $_POST['email'] . "\n"; $data .= $_POST['message'] . "\n";
Just as a sidenote, \n has to be in doublequotes. When surrounded by single quotes it won't work.