The following code all works fine in a <?php ?> block except the \n is not working. All the fields in the in the email are on one line. I have done this before and it seemed to work but not now. What have I done wrong?
foreach ($_POST as $key => $value) {
if (isset($fields[$key])) {
$emailText .= "$fields[$key]: $value\n"; }
}
Thank you for your help.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 459 |
Nodes: | 16 (2 / 14) |
Uptime: | 143:37:29 |
Calls: | 9,339 |
Calls today: | 10 |
Files: | 13,538 |
Messages: | 6,083,319 |
Posted today: | 1 |