Jump to content

Archived

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

kaspm

PHP email(

Recommended Posts

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

Share this post


Link to post
Share on other sites
So it should look like this:

$_POST['value'] \n . $_POST['value2'] \n . $_POST['value3'] and so on

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

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.