If you use an image instead of a submit button.
You will not get the name/value pair on the server in case of IE. Since I mostly use firefox I missed it out completely. Once all the images were changed it was tested on IE and it did not work. After trying out for hours and searching high and low on the internet I finally figure out that incase of an image IE will not send the name/value pair. Instead it will send out button1.x and button1.y, which are the coordinates where the user clicked. So I had to change the complete code to check for button1_x and so on. It was a real pain getting this thing. I guess that adds to the list of 1 more reason why I hate IE.
input type="image" name="button1" value="test"..
input type="submit" name="button2" value="test"..