Home > Backend Development > PHP Tutorial > Why can't $_POST get the value?

Why can't $_POST get the value?

WBOY
Release: 2016-08-04 09:22:19
Original
1340 people have browsed it

Why can't $_POST get the value?

Why can't $_POST get the value?

Reply content:

Why can't $_POST get the value?

Why can't $_POST get the value?

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>
Copy after login

Written like this, when you getrequest, because $_POST is space-time at this time, an undefined parameter error will occur,

So are you sure you postrequested?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template