2690

How to process multiple lines of textarea input into a form’s textarea in PHP, one by one

How to process multiple lines of textarea input into a form’s textarea in PHP, one by one

2012.3.26

Note how to process the contents of multiple lines entered into the form’s textarea, one by one.

Introduction.

Code.

Taking into account the possibility that there may be multiple line feed codes, we will use two types of line feed codes (rn, r) in html After unifying to the commonly used line breaks (n), the n is inserted into the array, separating the n.

Once the characters are in the array, you can check the security of the input characters by using foreach, etc. and all you have to do is add the necessary processing.

[itemlink post_id=”1975″]