Hi I am building a video voting website that allows voting on videos. I want the user to be able to vote without interrupting the play of the video.
here is the snip I am using.
if ($_POST['vote']) {
$sql = mysql_query("UPDATE videos SET vid_votes=vid_votes+1 WHERE vid_id=$vid_id");
}
$votebutton ="<form action='index.php?id=$vid_id' method='post' enctype='multipart/form-data'><input name='vote' type='hidden' id='vote' value='$vid_id'><input type='submit' name='Submit' value='Vote for it!' /></form>";
I echo out the vote or not vote based on a query of whether or the logged in voter already voted today.
This script logs a vote and returns the user to the video he was watching. More scripting will change this to an unvote button if the user has already voted within a day. However my main concern is How can I get this button to run the script without restarting the video?