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:
<Input type = image src = "..." name = aaa>
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 test is passed. If you have any questions, please contact me!