답변 2개
채택된 답변
+20 포인트
11년 전
btn_submit 의 값이 변경되었기 때문입니다.
/bbs/board_list_update.php 파일도 함께 수정해 주셔야 할 것 같네요.
/bbs/board_list_updat.php 파일에서
if(!$count) {
alert($_POST['btn_submit'].' 하실 항목을 하나 이상 선택하세요.');
}
if($_POST['btn_submit'] == '선택삭제') {
include './delete_all.php';
} else if($_POST['btn_submit'] == '선택복사') {
$sw = 'copy';
include './move.php';
} else if($_POST['btn_submit'] == '선택이동') {
$sw = 'move';
include './move.php';
} else {
alert('올바른 방법으로 이용해 주세요.');
}
?>
$_POST['btn_submit'] == 'DELETE' 로 수정해 주시면 될 듯 합니다.
복사나 이동도 마찬가지로.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
i
izabella
11년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
if($_POST['btn_submit'] == '선택삭제' || 'DELETE') {
include './delete_all.php';
} else if($_POST['btn_submit'] == '선택복사' || 'COPY') {
$sw = 'copy';
include './move.php';
} else if($_POST['btn_submit'] == '선택이동' || 'MOVE') {
$sw = 'move';
include './move.php';
} else {
alert('올바른 방법으로 이용해 주세요.');
}