enabling parargraphs in text boxes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

enabling parargraphs in text boxes

Post by hame22 »

Sorry, probably a simple question but how do you allow carriage returns that aoppear in text boxes so that they are saved to the database?

Hope thats understandable, thanks in advance!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Text boxes don't support multiple lines. Text areas do. Is this what you're referring to? They're already supported.

Maybe you're looking for them to display more similar to the input. nl2br() may be of interest.
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

Post by hame22 »

yes thats what i meant, perferect solution just has been a long time since I have needed to do this!!

Thanks for your speedy reply!
Post Reply