title: I need to create a "vote" button that does not refresh the page
body: <p>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.</p>
  
  <p>here is the snip I am using.</p>
  
  <pre><code>if ($_POST['vote']) {
      $sql = mysql_query("UPDATE videos SET vid_votes=vid_votes+1 WHERE vid_id=$vid_id"); 
  }
  $votebutton ="&lt;form action='index.php?id=$vid_id' method='post' enctype='multipart/form-data'&gt;&lt;input name='vote' type='hidden' id='vote' value='$vid_id'&gt;&lt;input type='submit' name='Submit' value='Vote for it!' /&gt;&lt;/form&gt;";
  </code></pre>
  
  <p>I echo out the vote or not vote based on a query of whether or the logged in voter already voted today.</p>
  
  <p>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?</p>