PDA

View Full Version : How to Do htis Voting Mechanism



om20
07 Sep 2010, 06:11 PM
There is a "voting type mechanism" on www.fmylife.com . Where you can simply press and add your vote, without having to log in. can someone help me find the code for this? I;m rather new

Asperon
07 Sep 2010, 11:25 PM
<a href="#" onclick="addVote(); return false;">Vote!</a>

<script type="text/javascript>
function addVote(){

// Run ajax function here that changes a database value for the number of votes

}
</script>


Some like this perhaps would work, depends on what you need.