Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-21-2003, 08:10 PM   PM User | #1
Shecky
Regular Coder

 
Join Date: Dec 2002
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Shecky is an unknown quantity at this point
insert line breaks

I have a simple form with a text area where people are going to be entering a lot of line breaks. then i post the form and it generates html code. How can i get it to recognize there is an enter 'break' in there and have it add a <br>
__________________
seldom ruined but by myself
Shecky is offline   Reply With Quote
Old 03-21-2003, 10:20 PM   PM User | #2
Ökii
Regular Coder

 
Join Date: Jun 2002
Location: UK
Posts: 577
Thanks: 0
Thanked 0 Times in 0 Posts
Ökii is an unknown quantity at this point
$x = nl2br($x);
__________________
Ökii - formerly pootergeist
teckis - take your time and it'll save you time.
Ökii is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 Off

Forum Jump


All times are GMT +1. The time now is 09:52 AM.


Advertisement
Log in to turn off these ads.