Think about it: what's a click? :-)
Of course you cannot prevent the user to click on anything anytime, you can only process clicks on different ways depending on is it the first click or not. Isn't this obvious? I can give you just a simple idea on how to do it:
<html>
<body>
<script type="text/javascript"></script>
<p onclick="processClick();">Click here</p>
</body>
</html>
Simple, isn't it?
Of course, if the user reload the page, she or he can vote again. If you use session support, the user can close the session, open a new one ans still vote again. You can prevent it only if you have user authentication on server side, in PHP code. You would need a user account; the user will need to submit an authentication through a Web form to get a right to vote. If you want to do that, you will be able to allow only one vote per rating object per user account.
This is a separate topic. If you want that, there is plenty of manuals and PHP source code to deal with user account and authentication.
—SA