Cainiao problem: the built-in server in phpstorm does not run post. objective: to add two numbers and send them to the server using post, but the server does not receive the submitted content.
Exactly post.html
Add
2. post_server.php
Print_r ($ _ POST );
If ($ _ POST ['A'] & $ _ POST ['B']) {
Echo $ _ POST ['A'] + $ _ POST ['B'];
} Else {
Echo 'parameter cannot be blank! ';
};
III. running result:
Array ()
Notice: Undefined index: a in E: \ xampp \ htdocs \ tools \ post_server.php on line 11
The parameter cannot be blank!
IV. other instructions
Use the built-in server http: // localhost: 63342/htdocs/tools/post.html
However, there is no problem when running apache. http: // localhos/tools/post.html
Phpstorm version 10.0.1
Php interpreter settings: E: \ xampp \ php \ php.exe
Need to configure the built-in server?
Reply to discussion (solution)
Whoever asks you to use phpstorm 10 will return 9.