The above HTML code is for
You're basically abusing the to have a button with a background image. The
represents an image map. The mouse position on the button is been sent as
cmd_delete.x
and cmd_delete.y
parameters. But you are not interested in the mouse position. Replace it by a normal and use CSS to specify a background image. E.g.
with
input.delete {
background-image: url('bin/images/common/delete.png');
width: 20px;
height: 20px;
border: 0;
cursor: pointer;
}
and check it as follows
if (isset($_GET['cmd_delete'])) {
// Delete button pressed.
}