Home  >  Article  >  Backend Development  >  Why can't HTML form data be transferred to PHP?

Why can't HTML form data be transferred to PHP?

Guanhui
GuanhuiOriginal
2020-05-12 17:37:184075browse

Why can't HTML form data be transferred to PHP?

Why the HTML form data cannot be transferred to PHP

1. The action attribute of the HTML form is set incorrectly and does not correspond to the PHP file;

<form action="这里的地址必须对应要提交的PHP文件地址"></form>

2. The HTML form submission method must correspond to the PHP receiving method;

Why cant HTML form data be transferred to PHP?

3. There is an error in the PHP method of receiving parameters.

Recommended tutorial: "PHP Tutorial"

The above is the detailed content of Why can't HTML form data be transferred to PHP?. 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