Ok i am making a hot or not type of site (cloning mark zuckerberg site).
I need to make an image that when you click on it it sends a function...
Img:
<a href="voteadd()"><img src="img"></a>
Function:
<script>
function voteadd()
{
// NEED A CODE TO RUN MY PHP FILE CALLED "add.php" (a file that will makes the votes go up everytime its ran.)
// NEED A CODE TO A REFRESH ON THE MAIN FRAME CALLED "main.php"
}
</script>
How the site works:
Homepage > Gender > Loads the main frame > Inside that is the framedef for a randomized person > This frame has an img that has the <a href> attach from the top > this img (once clicked) will run the function voteadd(); > this will add +1 to the votes.txt file & also it should reload the main frame.
Here is my site:
http://75.176.183.227/