HTML-When submitting large amounts of data using textarea, the PHP background uses the $_post array to read

Source: Internet
Author: User
Tags php print
The first is a page form with only one input and textarea. When the data entered in the textarea is relatively small (such as 1000 knots), the background I use PHP $_post array can read the data, but if the data entered in the textarea large (such as 100,000 bytes), the background I use PHP $_ The post array can read only the contents of input, and the contents of the textarea cannot be read.

Then I checked the Internet, said the server (I use the Appser integrated environment) configuration problem, need to modify the post_max_size parameters in the php.ini, I changed to 20M, through the phpinfo.php print view has changed, but still can't get.

Hope Daniel helps, TKS.

Reply content:

The first is a page form with only one input and textarea. When the data entered in the textarea is relatively small (such as 1000 knots), the background I use PHP $_post array can read the data, but if the data entered in the textarea large (such as 100,000 bytes), the background I use PHP $_ The post array can read only the contents of input, and the contents of the textarea cannot be read.

Then I checked the Internet, said the server (I use the Appser integrated environment) configuration problem, need to modify the post_max_size parameters in the php.ini, I changed to 20M, through the phpinfo.php print view has changed, but still can't get.

Hope Daniel helps, TKS.

PHP modifies 3 parameters:
Upload_max_filesize
Post_max_size
Memory_limit

Nginx Modify 11 Parameters:
Client_max_body_size 35m; #客户端上传文件大小设为35M

This seems not only to change here can, as if apache/nginx the maximum upload value also to change.

  • 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.