How to get the name value passed by the image button in PHP
I need to use the picture button to beautify my web, but using the connection method will appear in the browser bar variable values, so it seems uncomfortable, if you use hidden to submit, and feel unnecessary, because since the image has the Name property, it should be able to fetch, why should add a variable? Posted in BBS for a few days also no one answered, I can only find a way to read their own, and then found!
The image in the form, as a submit, produces two related variables, such as:
Then, during the commit process, two variables are generated, for aaa_x and aaa_y
which contains the exact position of the picture on the screen x and Y
And then, in PHP, just Judge Aaa_x and aaa_y.
Do not need any hidden fields, JavaScript, and concatenated value behavior!
The above describes how to get the name value of the image button passed in PHP, including the contents of the content, I hope that the PHP tutorial interested in a friend to help.