<?php if(isset($_POST['submit'])) { $comment=strip_tags($_POST['content']); $com = $db->prepare("INSERT INTO comments (comment,userto, userfrom, blog) VALUES (:comment, :userto, :userfrom, :blog)"); $com->execute(array(':comment'=>$comment,':userto'=>$userid,':userfrom'=>$uid,':blog'=>$blogId)); } ?>
<form method='post' name='form' action='' class='commentbox2'> <textarea name='content' id='content'></textarea><br /> <input type='submit' value='Comment' name='submit' class='comment_button'/> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)