Jump to content

textarea format


SamohtVII

Recommended Posts

That is nice but I forgot to mention that the form submits to an sql table. And when I print the data out it gives me the <p> and <b> etc. Is there someone I can format when i SELECT the data from a database?Just asking so not drama if it requires a lot of effort.ty

Link to comment
Share on other sites

Textarea elements do submit newlines. But browsers ignore newlines in HTML code. If you want to display new lines as HTML line breaks then you need to convert the newlines to <br> tags when you print the text on the page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...