There are two questions here:
1. Image buttons are different from ordinary buttons and require js to simulate the submission operation.
2. When obtaining the button operation in php, the normal isset($_POST[object name]) cannot be used. After printing_r($_POST), it is found that:
Array ( [btn_reg_x] => 81 [btn_reg_y] => 27 )
After reviewing the information, it was found:
$_POST[thisname_x] --The X position of the picture when the mouse is clicked
$_POST[thisname_y] --The Y position of the picture when the mouse is clicked
Therefore, modify the original client submission code to:
function SubmitOne()
{
$("MyForm").submit();
}
php code changed to:
if(isset($_POST[btn_reg_x])) // or (isset($_POST[btn_reg_y]))
{
echo ok!Thats right.;
}