If you are using an image button to submit a form. Your code should look like this...
<input type='image' name='submit' src='image.src'>
your if statement will read....
if ($submit_x)
The reason is because the image has two coordinates x,y..using just plain ($submit) does not work!!