This is a discussion on "PHP Form Mail" within the PHP Forum section. This forum, and the thread "PHP Form Mail are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP Form Mail
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
PHP Form Mail
The code below is the message part of the email. But when I look at the email, after Contact Form and Email Address, everything is double spaced and shifted to the right.
|
|
|
|
|||
|
Re: PHP Form Mail
If this layout is exactly as in your code then that is exactly what will happen.
PHP is adding the newline/carriage returns and the tabs/spaces of your code to your $body variable. PHP thinks that everything upto the ';' is part of the line of code. If you want to write your code like this for clarity, then make each line a php line in its own right and build your $body content as you go. See example code:
|
![]() |
| Tags |
| php, form, mail |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Mail Form | Synoptic | PHP Forum | 2 | Jun 11th, 2008 21:16 |
| Mail Form help! | ClrWtrDsgnr | PHP Forum | 6 | Sep 27th, 2007 21:22 |
| Can someone help me with this e-mail form??? | johnson8707 | PHP Forum | 4 | Jul 4th, 2006 17:51 |
| visitors name not displayed in mail after filling in mail form | made on earth | PHP Forum | 7 | Nov 16th, 2005 22:43 |
| E-mail form ??????? | pittypatter | Web Page Design | 3 | Apr 11th, 2005 23:42 |