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

Why can't $_POST get the value?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-04 09:22:19
Original
1377 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,

// HTML CODE

if ($_POST['a'] && $_POST['b'])
{
    //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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template