Jump to content

Recommended Posts

I am sorry if this is in the wrong place, but there is no place just for General PHP Help!?  Anyways, This is what I am desperatly needing help with.

 

$content .= $_POST['fullname'];

$content .= $_POST['coname'];

$content .= $_POST['number'];

$content .= $_POST['make'];

$content .= $_POST['model'];

$content .= $_POST['year'];

$content .= $_POST['location'];

$content .= $_POST['destination'];

$content .= $_POST['comments'];

 

When it shows up in outlook or your email, it shows up in 1 straight line/sentence.  I have tried the "\n" and <BR> and everything, and keep getting errors.  Any help would greatly be appreciated!

Link to comment
https://forums.phpfreaks.com/topic/167292-php-post-help/
Share on other sites

I am sorry if this is in the wrong place, but there is no place just for General PHP Help!?

 

PHP Help.  Don't worry, I moved it there already.

 

Can you take what I have and provide and example of how "\n" fits in with it all?  Maybe I am putting it in a wrong place while missing something.

 

//TEXT
$content .= $_POST['fullname'] . "\n\r";
$content .= $_POST['coname'];

 

//HTML
$content .= $_POST['fullname'] . "
";
$content .= $_POST['coname'];

 

Text emails use newlines and carriage returns, HTML uses
.  Can you post your header information as well?

 

 

Link to comment
https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882088
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.