This may sound a bit dumb but can someone please tell me how I add line breaks to the email that is sent out by the form once completed through the process.php???
Thank s
DezB
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Folks
This may sound a bit dumb but can someone please tell me how I add line breaks to the email that is sent out by the form once completed through the process.php???
Thank s
DezB
Add "\n" for text emails and "<br />" for html emails.
Please, please explain where to put a break. Is it in the processor.php or the form.html ??
I don't get it
The processor.php generates the email message before it is sent. This is where the line breaks belong.
Look for the line beginning with "mail(".
Nope!
I think, this is the solution for a break after each answer (?):
<?php
$where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));
session_start();
if( ($_SESSION==$_POST) && (!empty($_POST)) ) {
mail("*******@*********","phpFormGenerator - Form submission","Form data:
Your name*:: " . $_POST . " \n
Your e-mail adres*:: " . $_POST . " \n
Question 1:: " . $_POST . " \n
Question 2:: " . $_POST . " \n
Question 3:: " . $_POST . " \n
Question 4:: " . $_POST . " \n
Vraag 5:: " . $_POST . " \n
Vraag 6:: " . $_POST . " \n
Vraag 7:: " . $_POST . " \n
Vraag 8:: " . $_POST . " \n
Vraag 9:: " . $_POST . " \n
Vraag 10:: " . $_POST . " \n
Vraag 11:: " . $_POST . " \n
Vraag 12:: " . $_POST . " \n
powered by phpFormGenerator.
");
include("confirm.html");
}
else {
echo "Invalid Captcha String.";
}
?>