There is a bug in phpstorm’s built-in server post, you can use PHP’s built-in server instead
See my previous solutions
https://segmentfault.com/q/1010000005685200/a-1020000005685414
Why should we write html in the php file? .
Debug and see the results! Directly in the php filevar_dump($_POST)
; see if it is valuable
The reason is that you write the PHP code directly in HTML,
<code class="php"> // HTML CODE if ($_POST['a'] && $_POST['b']) { //CODE.. }</code>
get
request, because $_POST
is space-time at this time, an undefined parameter error will occur,post
requested?