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!
Heya,
So if you visit http://www.hookmedia.biz/cabinet_source/v4_f you'll see my current project. If you fill out the two forms on the "Contact Us" page then it's emailed to wherever. But when the email shows up, all the content is on the same line, no spaces. Can anyone tell me how to make it so each one is on it's own line? Thanks!
First up: Watch out populating the header with user input that hasn't been cleaned! Reject $_POST['name'] if it contains anything other than alphanumeric characters. Otherwise a user can send spam out very easily. Safest is to not put any user input in the headers!
The way I would do it is to format it as an html email