내용 필수 조건 없이 글 작성

내용 필수 조건 없이 글 작성

QA

내용 필수 조건 없이 글 작성

답변 1

본문

bbs/write_update 에서

 

if ($bo_table != "basic1" || $bo_table != "basic2" || $bo_table != "basic3" || $bo_table != "basic4") {
    if ($wr_content == '') {
        $msg[] = '<strong>내용</strong>을 입력하세요.';
    }
}

 

skin write_skin

 

f ($bo_table == "basic1" || $bo_table == "basic2" || $bo_table == "basic3" || $bo_table== "basic4") {
    $editor_js = '';
    $editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
}

 

이거 아닌가요? 

 

이런식으로 1개만 조건을 붙이면 적용 되는데 다수를 붙이면 안됩니다... 코드 어떤 부분이 잘못 된걸까요?

 

f ($bo_table == "basic1") {
    $editor_js = '';
    $editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
}

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 10
© SIRSOFT
현재 페이지 제일 처음으로