Jump to content

HTML form with formatting


leachus2002

Recommended Posts

Hi There,

 

In some of my forms, I am using <textarea> boxes in order for lot's of information to be entered. When submitted, these forms pump data into a database. Is there any way of carrying through the carriage returns with the form? So that when it is displayed back on the page, it looks exactly how it was entered.

 

For example, if someone puts the following in the text box:

 

Hello,

 

This is line 1

This is line 2

 

This is how I would like it to be displayed

 

Thanks

Matt

Link to comment
https://forums.phpfreaks.com/topic/224059-html-form-with-formatting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.