Home  >  Article  >  Backend Development  >  Why does PHP get an error when using POST to receive parameters?

Why does PHP get an error when using POST to receive parameters?

Guanhui
GuanhuiOriginal
2020-05-13 13:13:052895browse

Why does PHP get an error when using POST to receive parameters?

Why does PHP make an error when using POST to receive parameters?

1. The action attribute in the front-end form is set incorrectly or not Corresponds to the PHP file;

<!-- 表单的action属性必须与PHP文件地址对应 -->
<form action="./doAction.php"></form>

2. The form submission method method does not correspond to the receiving method in PHP;

Why does PHP get an error when using POST to receive parameters?

3 , PHP receives POST data parameter name setting error.

Why does PHP get an error when using POST to receive parameters?

Recommended tutorial: "PHP Tutorial"

The above is the detailed content of Why does PHP get an error when using POST to receive parameters?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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