Results 1 to 4 of 4

Thread: Simple question

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default Simple question

    I have a feedback form that is an html page with a form in it and it goes to a php page that send the information to my email address.

    Below is the code for the php page, how would I be able to drop each option onto a new line instead of having them all line up on the same line?

    PHP Code:
    <?php 
    $to 
    "xxxxx@xxxxxx.com"
    $subject "Request";
    $message "Artist: " $_POST["artist"] ." Title: " $_POST["title"] ." Comment: " $_POST["comment"] ."\r\n";
    $sent mail($to$subject$message) ;
    ?>
    I can image this will be a super quick answer.

  2. #2
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Before " Title:" and " Comment:", you need to put a /n for newline in there, so it should look like this;

    "/nTitle:"

    and

    "/nComment:"


    Give that a try.

  3. The Following User Says Thank You to warderlan For This Useful Post:

    nate51 (05-30-2008)

  4. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by warderlan View Post
    Before " Title:" and " Comment:", you need to put a /n for newline in there, so it should look like this;

    "/nTitle:"

    and

    "/nComment:"


    Give that a try.
    its a backslash not forward

    Code:
    \nCODE

  5. #4
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    That did it,

    I knew it was a simple answer, thanks guys.


    -- Nate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •