How to obtain the name value passed by the image button in php

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.