Hey Betania....
Have a MUCH better solution...had the same problem myself, but came up with this.
In HTML when you have a tag like <input type=image name=b1...> when you press the button it sends as part of the form these two variables: b1.x & b1.y These refer to the X,Y coordinates of the image. So you can check these with php...for example I set on my page:
<input type=image name=b1 src=... >
<input type=image name=b2 src=... >
<input type=image name=b3 src=... >
if($b1_x) { then do stuff}
elseif($b2_x) { do stuff}
elseif($b2_x) { do stuff}
It's important to remember that any variable recieved by php that has a . in it, php translate to a _ which is why b1.x(html) = b1_x(php).
Hope this helps, if not you can yell at me later!!