Php cannot extract the value of submit after replacing the submit button with an image _ PHP Tutorial

Source: Internet
Author: User
Php cannot extract the value of submit after replacing the submit button with an image. There are two problems: 1. the image button is different from the normal button, and the js is used to simulate the submission operation. 2. when getting a button in php, using the normal isset ($ _ POST [objectname]), there are two problems:

1. the image button is different from the normal button. js is used to simulate the submission operation.

2. during the Get button operation in php, the normal isset ($ _ POST [object name]) cannot be obtained. after print_r ($ _ POST), it is found that:

Array ([btn_reg_x] => 81 [btn_reg_y] => 27)

After checking the information, we found that:

$ _ POST [thisname_x] -- click the X position of the image
$ _ POST [thisname_y] -- click the Y position of the image

Therefore, modify the submitted code of the original client:

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.