Unknown, PHP suddenly cannot obtain POSTurlencoded data

Source: Internet
Author: User
Unknown cause: PHP suddenly fails to obtain POSTurlencoded data and encounters a very strange problem: XP Pro + SP3 system. Yesterday, the program was normal. after restarting apache once, it was found that PHP could not obtain POSTurlencoded data, but both GET and POSTmultipart/form-data could be obtained normally. That is to say, when & lt; f is unknown, PHP suddenly cannot obtain the POST url encoded data.
I encountered a very strange problem:
XP Pro + SP3 system.
Yesterday, the program was normal. after restarting apache once, it was found that PHP could not obtain the POST url encoded data, but both GET and POST multipart/form-data could be obtained normally.
That is, when Var_dump ($ _ POST) is array (0 ){};
When$ _ POST only has a value.
Confirm that the browser has sent the POST data, whether it is Google Firefox IE6, traditional form submission or ajax.
This problem occurs not only in some pages, but not in all php and even phpMyAdmin.

I tried to reinstall php5.2.17 and reinstall apache2.2.22.0 today.
No way, I had to use IIS5.1 + PHP5.2.17 isapi and try again. The result is okay this time, but I cannot use IIS instead ......

Recall yesterday after the restart of apache problems before, it seems to be a run of a php under the go-pear.bat, and then in the first interface directly points the cross off; some other php files may have been modified. ini configuration;
But in the end, I decompressed the original php and re-installed apache. it is probably not the reason for them? Or is there something strange about the operating system?

Which of the following heroes has encountered this problem? I really don't want to reinstall the system ......

------ Solution --------------------
Let's take a look at the results of enctype = 'application/x-www-form-urlencoded?


------ Solution --------------------
You can use $ _ QUERST to receive the value and check whether it can receive the value from the post. As for the value that $ _ POST cannot accept, it should be a configuration problem. it may be your php. this is caused by a parameter change in ini! Try to modify this parameter register_global
------ Solution --------------------
Discussion
If enctype is not specified, the default value is "Content-Type: application/x-www-form-urlencoded ".

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.