설문조사 기타의견쓰기에 비회원일 경우 캡챠 적용

This commit is contained in:
gnuboard
2013-01-20 17:57:10 +09:00
parent dc0c463be6
commit 703ce0f585
3 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,11 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
if ($is_guest && !chk_captcha()) {
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
}
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' ");
if (!$po['po_id'])
alert('po_id 값이 제대로 넘어오지 않았습니다.');