Page 1 of 1

enabling parargraphs in text boxes

Posted: Wed Jan 17, 2007 8:52 am
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!

Posted: Wed Jan 17, 2007 8:54 am
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.

Posted: Wed Jan 17, 2007 8:56 am
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!