Php obtains the textarea value and processes the carriage return and line feed method. textarea returns the line feed. Php obtains the textarea value and processes the carriage return and line feed method. the example in this article describes how
PHP gets the value of textarea and handles the method of carriage return, textarea carriage return line
This example describes how PHP gets the value of the textarea and handles the carriage return line-wrapping method. Share to everyone for your
This article mainly introduces the PHP variable in the foreground HTML textarea how to wrap and change the line changes in the PHP background, has a certain reference value, now share to everyone, the need for friends can refer to
The problem seems
The carriage return of the text submitted by the form textarea is converted to the text submitted in the textarea of the & lt; p & gt; form. after the text is submitted, it is written to the mysql database, then read and display it. The result shows
This article mainly introduces how php can get the value of textarea and process the line break of carriage return, which involves conversion and processing of special characters. For more information, see
This article mainly introduces how php can
This article mainly introduces how php obtains the textarea value and processes the carriage return line feed, which involves the conversion and processing of special characters, for more information about how to use php to obtain the textarea value
Today, I encountered a textarea line feed problem in the project, which was not solved after debugging for half a day. You need to convert the carriage return text in textarea into a br and store it in the database. The following is my solution to
In the html form, in textarea, we press the carriage return and line feed to display some asc or special characters, but we cannot see them. if we do not convert the output text, there is no typographical layout, the following is a summary of some
Here is my solution to the problem, and finally I understand it, it's a sewer that almost capsized
1. You must know that the line break in TextArea is \ n (personal detection found that pressing ENTER is \ n, as if it were \ r \ n under Linux)
2.
Today, I encountered a textarea line feed problem in the project, which was not solved after debugging for half a day. You need to convert the line breaks in textarea into and save them to the database.
The following is my solution to this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.