kaspm Posted May 9, 2006 Share Posted May 9, 2006 I have a multipage form and I have it sent to my email but its not formatted. Is there a way I can have each value from the form on one line. Right now its all bunched together.Thanks Quote Link to comment Share on other sites More sharing options...
.josh Posted May 9, 2006 Share Posted May 9, 2006 you have to use escape characters like \r and \n where you want to make a new line Quote Link to comment Share on other sites More sharing options...
kaspm Posted May 9, 2006 Author Share Posted May 9, 2006 So it should look like this:$_POST['value'] \n . $_POST['value2'] \n . $_POST['value3'] and so on Quote Link to comment Share on other sites More sharing options...
.josh Posted May 9, 2006 Share Posted May 9, 2006 no it needs to be inside quotes, and you actually want to do both \r\n because \n is only recognized as next line for unix, \r only for mac and you need both \r\n for windows so depending on where the email is sent... just do both.$msg = $_POST['value'] . "\r\n" . $_POST['value2'] . "\r\n" . $_POST['value3'];like that. Quote Link to comment 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.