Menu

Line breaks in tehe created form

Help
DezB
2010-02-14
2013-06-03
  • DezB

    DezB - 2010-02-14

    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

     
  • TNTEverett

    TNTEverett - 2010-02-15

    Add "\n" for text emails and "<br />" for html emails.

     
  • Freek

    Freek - 2010-11-26

    Please, please explain where to put a break. Is it in the processor.php or the form.html ??
    I don't get it

     
  • TNTEverett

    TNTEverett - 2010-11-26

    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(".

     
  • Freek

    Freek - 2010-11-27

    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.";
    }

    ?>

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.