Really simple question but can't seem to get anything to work with it?
I have a standard HTML link:
<a href=""> <i class="icon icon-arrow-circle-o-up"></i> Like </a>
I would like to use it as a submit button like a form so once someone clicks it I could run the following code:
if(isset($_POST['like'])){
mysql_query"UPDATE comments WHERE comment_id='$comment_id' SET like='1'";
}
Would this be an "On click" event or something or would I have to use javascript?