Hello
I am having a problem making a php+ajax poll work. The code can be found here: [URL=”http://www.w3schools.com/php/php_ajax_poll.asp”]http://www.w3schools.com/php/php_ajax_poll.asp
Now instead of
[CODE]<input type=”radio” name=”vote” value=”0″ onclick=”getVote(this.value)”>
I’ve changed it to
[CODE]<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 [url]http://localhost:8080/[B]?vote.x=181&vote.y=90&vote=0
Any help would be much appreciated.
Cheers