How do I use form to pass values between php and html? How does php receive such data? Solution: -------------------- two parameters in form, an action indicates the file to which the data is transmitted. If this parameter is left blank, the data is transmitted by default. a method indicates the method used for data transfer, $ _ post (value transfer between pos php and html) is used in files with get and POST input boxes and names.
How can I use form to pass values to php? how can php receive such data?
------ Solution ----------------------
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.