PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
As the code stands now, I won't even get an E-mail from the form. I've tried modifying it and the best I can get is for it to have the data without any line breaks. Any help would be appreciated. Thanks in advance.
do an echo $Body first to see if the message is being formatted how you would like. If it is, then check if the mail function allowed from your server.
Yeah when I tried echo with the \n it didn't format it the way I wanted it. Is their any other suggestions for formatting (making line breaks) without using \n?
I've also noticed that it won't go through if I use \n. However it does go through without all the \n. This is how it comes through now without the \n.
First Name: John Last Name: Doe Phone: 1112223333 E-Mail: johndoe@gmail.com Street: 123 Mulberry Lane City: Gumdrops State: XX Zip Code: 12345 Comments: Testing of form with content of body without formatting.
I may have missed some periods. Also,I have not tested the code. if all else fails, you can use a <br> in it,which creates a line break. I personally never used the \n feature.
Using <br> instead of \n actually just puts <br> into the text instead of formatting it. It seems though, using \r or \r\n works and formats it the way I want (using periods to space out the variables too like the way the code you posted above) and sends the message to my inbox. Thanks for your help!
alrighty. You are welcome. Thats surprising, the <br> was not with the variable right? It should have created a line break. Bot,you are welcome for whatever help i did give
Putting in \r\n or \r (where the <br> is at above) got it to work the way I wanted it too. <br> Might have worked if it was a HTML message, but it was just a plain text message. Oh well. Thanks again!