Hi,
I’m using the following code in my sendmail.php that works in conjunction with an HTML form:
$body .= (!empty($_POST[‘otherd’])) ? $_POST[‘otherd’] : ‘’;
If the field (otherd) in the form is left empty, the field is left out of the e-mail - which is what I want…However, if the field has a value, there is no line break after the value in the e-mail, and the field value that’s displayed runs into the next field’s (line’s) value.
For example…if the text that someone enters for the field “otherd” is “I’d like to submit my application for this job.” - and the field that follows has the value of “starting date:” - I get the following result in the e-mail:
I’d like to submit my application for this job.starting date:
I want it to be as follows:
I’d like to submit my application for this job.
starting date:
I’m not sure where to place the “\n\n” or other like-minded code to get this result.
Thanks for your generous help.
MRCD