|
-
Oct 6th, 2009, 09:35 AM
#1
Thread Starter
Lively Member
[RESOLVED] Textarea Help
I have a text area that contains this:
When I submit my form, I simply echo the results onto the page, but it prints like this:
How can I get it to print exactly as posted? With the new line? BTW, this is going to be public, so I don't want the users to have to use <br //>.
-
Oct 6th, 2009, 10:02 AM
#2
Re: Textarea Help
you can use a function like nl2br() to convert new line characters to line breaks in HTML. you could also make a function that formats your text, so that you might be able to add something similar to bbcode to your own website.
-
Oct 6th, 2009, 10:04 AM
#3
Thread Starter
Lively Member
Re: Textarea Help
Thanks. Now I remember why I use this site! People are so helpful and not impolite in the least. Thanks a lot! Hopefully, I'll do something similar to bbcode at some point, but it's a bit project and I want to get the basics down first. Many thanks!
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
|
Click Here to Expand Forum to Full Width
|