Recently, when I was working on a company project, I discovered a strange problem. When I submitted a normal form, I found that the submitted value could not be obtained normally. This discovery made me confused at first. At first, I thought it was me. There was a problem with the service and it could not be written to the database normally. Later, after detecting the SQL statement, it was found that the problem actually occurred in obtaining the data. The obtained data was all empty. Later, after debugging, it was discovered that all the variables submitted to the backend were , are no longer the expected variables, but have been converted by PHP.
The test code is provided as follows:
Copy the code The code is as follows:
The above has introduced form submission. If the PHP form submission form name contains a period (), it will be converted into an underscore (_), including the content of form submission. I hope it will be helpful to friends who are interested in PHP tutorials.