Jump to content

PHP Post Help


knoxlogic

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.