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: