Home > Backend Development > PHP Tutorial > Form submission PHP form submission form name containing a period () will be converted into an underscore (_)

Form submission PHP form submission form name containing a period () will be converted into an underscore (_)

WBOY
Release: 2016-07-29 08:47:29
Original
903 people have browsed it

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:




Test form submission


< ;body>

Name:

Password:

QQ:

Address:

Phone:

Gender: MaleFemale

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template