: This article describes how to obtain the name value passed by the image button in php. For more information about PHP tutorials, see. How to obtain the name value passed by the image button in php
I need to use the image button to beautify my web, but using the connection transfer method will show the variable value in the browser bar, which looks uncomfortable. if I use hidden to submit, I think there is no need, because since the image has the name attribute, it should be able to get it. why should I add another variable? No one answered the question after posting it in bbs for several days, so I had to read the book and find a solution!
When the image in the form is used as the submit, two variables are generated, for example:
Then, two variables, aaa_x and aaa_y, are generated during the submission process.
It contains the specific position x and y of the image on the screen.
Then, in php, you only need to judge aaa_x and aaa_y.
You do not need to hide the domain, javascript, and pass the value through connections!
The above describes how to obtain the name value passed by the image button in php, including some content, and hope to help those who are interested in the PHP Tutorial.