I am having a problem making a php+ajax poll work. The code can be found here: http://www.w3schools.com/php/php_ajax_poll.asp

Now instead of
<input type="radio" name="vote" value="0" onclick="getVote(this.value)">
I've changed it to
<input type="image" src="image.png" name="vote" value="0" onclick="getVote(this.value)">
in hoping that when I click on the image, the same result would be produced like when its a radio button.

But its not working. By that I mean when I click the image, nothing happens, and the values in poll_result.txt doesn't change either. As for the URL I get http://localhost:8080/?vote.x=181&vote.y=90&vote=0

Any help would be much appreciated.