Get the name value passed by the image button in php

Source: Internet
Author: User
To retrieve the name value passed by the image button in php, I need to use the image button to beautify my web. However, the variable value will appear in the browser bar using the connection transfer method, this seems uncomfortable. if you use hidden for submission, you don't think it is necessary, because since the image has the name attribute, you should be able to get it. why should you add a 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!

Test passed. welcome to test

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.