• Re: New line in php not working

    From Angel@21:1/5 to All on Thu Jun 30 07:42:48 2022
    Reprogram then php, so that it will work.


    ******************************
    Angel
    ☏ ------> 372 53900660


    wart2ww kirjutas Pühapäev, 29. jaanuar 2017 kl 04:24:42 UTC+2:
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)