The question of passing values between php and html is how to pass values to php using form, and how php receives such data.
Reply to discussion (solution)
Use Ajax to submit data
1. you can use the name of the input box as an array.
2. serialized form submission
3. you can also use js to control it yourself.
How can I receive it in php? could you give me some advice?
Use $ _ POST ["name"] to accept
Method = "post" and then $ _ POST ['username'] receives
Two parameters in the form, one action, indicates the file to which the data is transmitted. If this parameter is left blank, the default parameter is used. one method indicates the method used for data transfer. There are two types: get and post.
Add name to the input box
The accepted files are received in $ _ POST or $ _ GET. The simplest is to directly var_dump ($ _ POST) or var_dump ($ _ GET) and then you will know how to call it.