Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »Programming Forum

Notices

Programming Forum Web and Software Programming Forum - Java, PHP, SQL etc.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-02-2007, 03:07 AM
Junior Member
 
Join Date: Jan 2007
Location: Traverse City Mi
Posts: 17
Default Line breaks in PHP

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
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 26-02-2007, 08:11 PM
Russlock's Avatar
Established Member
 
Join Date: Jan 2007
Location: Middlesbrough, Teesside
Gender: Male
Posts: 402
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 27-02-2007, 08:54 AM
crazyleaf's Avatar
Teeth Designer
 
Join Date: Jan 2007
Location: CrazyLeaf HQ
Gender: Male
Posts: 1,481
Default

A forced line break in PHP is "\n"
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 24-04-2007, 04:24 AM
Member
 
Join Date: Apr 2007
Posts: 84
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

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.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5