#176 옵션목록 생성시 post 값 체크코드 추가

This commit is contained in:
chicpro
2013-05-23 09:56:08 +09:00
parent 988f3f9513
commit 69a78c5e73
2 changed files with 16 additions and 3 deletions

View File

@ -9,8 +9,15 @@ if($it['it_id']) {
if(mysql_num_rows($result))
$ps_run = true;
} else if(!empty($_POST)) {
$ps_run = true;
$subject_count = count($_POST['subject']);
$supply_count = count($_POST['supply']);
if(!$subject_count || $supply_count) {
echo '추가옵션명과 추가옵션항목을 입력해 주십시오.';
exit;
}
$ps_run = true;
}
if($ps_run) {