Php processing textarea carriage return replacement method (js call error) _ PHP Tutorial

Source: Internet
Author: User
About php processing textarea carriage return replacement method (js call error ). About the php Tutorial processing textarea carriage return line replacement method (js call error) in the textarea input box chr (13) represents the carriage return, but when I replace it, it can indeed be the characters I want, but his php Tutorial on handling textarea carriage return replacement method (js call error)
In the textarea input box, chr (13) represents the carriage return. However, when I replace it with another character, there is a space in the place where the carriage return is displayed,
After repeated debugging, there is a n, which should be the carriage return of the database tutorial or program.
-->


If ($ _ post)
{
$ Textarea = str_replace ("n", '', str_replace (chr (13),'', $ _ post ['textea ']);
Echo $ textarea;
}
?>

Callback (js call error) in the textarea input box, chr (13) represents the carriage return, but when I replace it, it can indeed be the character I want, but he...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.