if(count($_POST)>0){
if(isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] == $_POST['captcha']) {
$database->setQuery("INSERT INTO #__kinoarhiv_opinions VALUES ('', '$id', '$ip', '$cm_uname', '$cm_content', '$cm_date', '1')");
$database->query();
} else {
$error = 'Error';
}
} |