When you use an image to submit a form, PHP creates two variables, $inputName_x and $inputName_y, so you can use the input button as a form of image map. You should check for the existance of one or both of these variables instead of simply $inputName. If you change the method to GET, you'll see this clearly.
adam