knoxlogic Posted July 24, 2009 Share Posted July 24, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/ Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 Either '\n\r' or '' should work. What's your header look like? Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882080 Share on other sites More sharing options...
knoxlogic Posted July 24, 2009 Author Share Posted July 24, 2009 That is what EVERYBODY is saying, is that it should WORK. But it doesn't? 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. Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882085 Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882088 Share on other sites More sharing options...
knoxlogic Posted July 24, 2009 Author Share Posted July 24, 2009 I am assuming the "\n" is for line break for PHP? what does the "\r" mean? Learn something new every day Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882091 Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 \n - Newline \r - Carriage Return Like I said before, newlines and carriage returns are used for text emails, 's are used for HTML. Are you still having this issue? Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882093 Share on other sites More sharing options...
knoxlogic Posted July 24, 2009 Author Share Posted July 24, 2009 Works beautifully! Thanks abunch! Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882107 Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 You're welcome BTW - You can mark the topic solved by clicking on the link in the bottom left. Quote Link to comment https://forums.phpfreaks.com/topic/167292-php-post-help/#findComment-882115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.