I have the following form in php:
<?php
<form action='deletepost.php' method='post'>
  <input type='hidden' name='var' value='$comment_id;'>
  <input type='submit' value='Delete'> 
</form>
?>
when the user press the delete button goes to deletepost.php script which is the following:
<?php  
$comment = mysql_real_escape_string($_POST['var']);
    if(isset($comment) && !empty($comment)){
    mysql_query("UPDATE `comments` SET `flag`=1 WHERE (`user`='$session_user_id' AND `comments_id`='$comment')");
    header('Location: wall.php');
}           
?>
I want the delete button that I have in my form to make it look a link. Any idea which is the best and easier way to do this?
 
     
     
    