![]() |
|
|||||||
| Notices |
| Programming Forum Web and Software Programming Forum - Java, PHP, SQL etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Does anyone know how to put line-breaks in PHP content?
I have a Flash contact form that send data to a PHP post script. That then send s the info to an e-mail account, but when it gets there the info doesn't have any breaks. Is there a way to put breaks in the content that the e-mail shows? Please help. Also, if you could show me an example it would help because Im not to familiar with PHP syntax. Sorry for asking for so much. Please help! Thanks much
__________________
I do websites at thestudio23.net |
|
||||
|
I think it's something like this to force a line feed.
"\n"
__________________
It's not what you know or who you know, it's what you know about who you know !!! Website design you CAN afford |
|
|||
|
If you are using double quotes (") around your body content, you can use \n for a line break. However, if you are using single quotes (') around your body, you can simply enter a line.
Example (") $body = "Line One\nLine Two"; This would come out as: Line One Line Two Example (') $body = 'Line One Line Two'; This would also come out as: Line One Line Two
__________________
29FIVE Designs - Providing Helpdesk Support Software And Website Design imagine... create... innovate |
![]() |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| anna-om-line | Toon | Illustration Graphic Design | 0 | 02-05-2008 03:10 PM |
| On-Line Invoicing | Picha | Graphic Design Business Forum | 2 | 14-02-2008 11:01 AM |
| Customize your own guitar on-line | Toon | Off Topic | 1 | 30-11-2007 12:32 PM |
| Which Tag Line?? | Toon | Graphic Design and Web Design Help | 17 | 02-10-2007 01:06 PM |
| On-Line Docs | Toon | General Web Design Forum | 0 | 13-03-2007 07:38 AM |
| All times are GMT. The time now is 06:50 AM. |