Jump to content

Form Textareas...


lostprophetpunk

Recommended Posts

I am in the process of building a comment system for my website, however I have come across a problem.

 

I can get the comments displaying correctly when they are submitted to the database, but when I try to echo them out in the textarea they do not display properly. I will try and explain it below...

 

Say if the user typed in the textarea the following...

 

Hello, I do like this...

 

...My name is bob.

 

But if the user get's an error when submitting the form, it will not display like that when it is echoed out again, it will be something like this...

 

Hello, I do like this...\n\n\n\r\n\n\n\r...My Name is bob.

 

It would display all in one block. So how would I be able to echo it out again just as the user typed it in the first place?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/145377-form-textareas/
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.