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;
3 , PHP receives POST data parameter name setting error.
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!