-
SitePoint Enthusiast
Retaining paragraph breaks in text area?
Hi,
I'm currently using DreamweaverMX to create a simple CMS for my site using PHP and MySQL, and I've run into a small problem.
I need the text area to retain the paragraph breaks automatically without my need to insert the <BR> tags manually.
Can anyone suggest a simple solution to this problem?
Regards
Psmeg
-
You will almost certainly find the PHP function nl2br() helpful here [img]images/smilies/smile.gif[/img]
Hope this helps!
-Sam
-
SitePoint Enthusiast
Cheers Devilware,
Thanks for pointing me in the right direction. A little nose at my PHP/MySql book and a little experimentation later and it's working sweet as a nut.
You're a life saver.... 
Regards
Psmeg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks