PHP cannot obtain post data-php Tutorial

Source: Internet
Author: User
PHP cannot obtain post data. Is there anyone in PHP who has encountered post value transfer in the foreground? $ _ POST cannot be used in the background to obtain the value?


Reply to discussion (solution)

Nothing. Give the code ..

Passed? You have to look at the specific code. this is generally not the case.

Paste the code to see

No! The value can be passed as long as you have not written an error. Paste the code...

Show me the code ~

Show me the code ~

Why not?

$ _ POST cannot be used to obtain the value. 

Remove enctype = "text/plain.

$ _ POST ['name'] receiving!

Firebug?

You can use $ _ QUERST to receive the value. As for the value that $ _ POST cannot accept, it may be caused by a parameter change in php. ini! You can modify the register_global parameter, but the security may be reduced!

You can use $ _ QUERST to receive the value. As for the value that $ _ POST cannot accept, it may be caused by a parameter change in php. ini! You can modify the register_global parameter, but the security may be reduced!
You can try it. it should be a configuration problem.

In some php versions, this may happen if the key value is not enclosed in quotation marks.


Quote from

Thanks for your reply, which seems to be a problem with php. ini settings.

No action

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.