When using a input type="image", the browser sends submit_x and submit_y.
So in PHP, $_POST['submit'] will not be available, but $_POST['submit_x'] and $_POST['submit_y'] will be defined (containing the X/Y coordinates where the image was clicked on).