The page $ _ POST cannot accept the post data, but uses get to submit the data, while $ _ GET can receive the data.

Source: Internet
Author: User
The page $ _ POST cannot accept post data, but uses get to submit. $ _ GET can be connected to html:




Myform






Php:




Transform



If (isset ($ _ GET ['hoby']) {
Echo $ _ GET ['hoby'];
}
?>



This is the code I just wrote, submitted using the get method, and then the php section can be connected to data with $ _ GET,
However, once the submission method is changed to post, $ _ POST will not receive any data!


Reply to discussion (solution)

Why is there another such problem?
The previous friend said that it was because the phpstorm-enabled webpage was not apache, but the apache port was used to open the webpage.
Http://bbs.csdn.net/topics/391891275
You wouldn't do the same, would you?

Sorry, how can I open a webpage through the apache port?

Enter the address of your server, which is generally 127.0.0.1.

I still don't understand it. if I open a webpage with phpstrom, the address is http: // localhost: 63342/htdocs/form/myform.html.
If I use apache to open what I want to enter, I still need to configure

I still don't understand it. if I open a webpage with phpstrom, the address is http: // localhost: 63342/htdocs/form/myform.html.
If I use apache to open what I want to enter, I still need to configure


Apache generally has port 80, which can be omitted.

No post code is posted.

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.