Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,673 members, 7,955,480 topics. Date: Sunday, 22 September 2024 at 07:04 AM |
Nairaland Forum / Science/Technology / Webmasters / PHP: How Do I Add Paragraph When I Make A Post Through Text Field (426 Views)
How Do I Add The Google Adsense Code To My Website? / How Do I Add "Like Me On Facebook" On My Blog? / How Can I Add Debit/credit Card Payment On My Site (2) (3) (4)
(1) (Reply)
PHP: How Do I Add Paragraph When I Make A Post Through Text Field by Raylight2(m): 5:45pm On Jun 16, 2016 |
Please, I am currently developing a website. when I include a paragraph (white space) between two sentences and send to the database, it's ignored when selected from the database back to the browser. please, what should I do? looking forward to hear from you please. |
Re: PHP: How Do I Add Paragraph When I Make A Post Through Text Field by ukorsimplicity(m): 7:38pm On Jun 16, 2016 |
What you need is a WYSIWYG editors... you can checkout tinyMCE or textboxio .. If TEXT EDITORS are overkill for your project, you can use the php nl2br() function ( http://php.net/nl2br ). like this
or you can use this code i borrowed from stack Over Flow ( http://stackoverflow.com/questions/4523961/paragraphs-in-textarea )
Happy coding... |
Re: PHP: How Do I Add Paragraph When I Make A Post Through Text Field by Raylight2(m): 10:36pm On Jun 16, 2016 |
Thanks so much bro. I'll try it out. |
(1) (Reply)
Simple Tricks For Getting Plenty Facebook Followers / Website Design In Badagry / Us Adsense Account With $22 Up For Sale. SOLD
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6 |