PHP Example – AJAX Poll
Example – The HTML Page When a user chooses an option above, a function called “getVote()” is executed. The function is triggered by the “onclick” event: <html> <head> <script> function getVote(int) { var xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { …