How would I properly add a line break in this string?
$message = $_REQUEST['description'] . "linebreak" . Telephone: $phone . "linebreak" . "Email: $email";
How would I properly add a line break in this string?
$message = $_REQUEST['description'] . "linebreak" . Telephone: $phone . "linebreak" . "Email: $email";
$message = $_REQUEST['description'] . "<br>" . Telephone: $phone . "linebreak" . "Email: $email";
If you want the literal carriage-return and newline characters, use back-slashes within double quotes:
$message = $_REQUEST['description'] . "\r\n" . Telephone: $phone . "\r\n" . "Email: $email";
Thanks for the quick responses. Neither break input worked
From using <br>, here is the email I received:
This is a message description.<br>Telephone: (706) 343-4444<br>Email: claytonWbffe@odfj.com
From using /r/n, here is the email I received:
This is a message description./r/nTelephone: (706) 343-4444/r/nEmail: Anotheikndf@ma.com
What exactly did you use? Note that it is "\r\n", not "/r/n".
:o
It's working...
Remember to mark this thread as resolved using the thread tools.