Hey there,
Don't use all that Java just to do this simple task. PHP can do anything anyway, here is a solution for you, that is VERY simple:
<FORM ACTION="mypage.php" method="POST">
<input type=image name="yes" src="images/yes.gif">
<input type=image name="no" src="images/no.gif">
</form>
And then in your php script:
if($yes_x or $yes_y){
echo "You clicked yes!";
} elseif($no_x or $no_y){
echo "You clicked no!";
}
That is it!
Note that this works every time. However you may have to tweek the if() statements for php versions previous to php 4.0.6.
Anyway the values passes will always be $nameofbutton_x and $nameofbutton_y where $nameofbutton_x and $nameofbutton_y will be the numerical coordinates of the spot on the image where you clicked.
Hope that helped,
Justin Carlson
The Apollo Dev Team
www.pyroxpro.com
contact@pyroxpro.com