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.