게시판 제목을 입력하세요. 뜨는 이유
본문
qa 게시판에 문의하기 form을 만들었습니다.
근데 계속 제목을 입력하라고 뜨네요.
제가 봤을 땐 코드에 문제가 없어보이는데 혹시 코드에 문제가 있는건가요?
아니면 다른 문제가 있는건가요?
<section id="bo_w">
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>"
onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data"
autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="qa_id" value="<?php echo $qa_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="token" value="<?php echo $token ?>">
<?php
$option = '';
$option_hidden = '';
$option = '';
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" name="qa_html" value="1">';
} else {
$option .= "\n".'<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="qa_html">html</label>';
}
echo $option_hidden;
?>
<div class="form_01">
<h1 class="tag">문의작성
<span style="color:#ff993e; font-size:20pt; font-weight:bolder;">_</span>
</h1>
<ul class="form_title">
<li class="bo_w_sbj">
<label for="wr_subject" class="sound_only">제목</label>
<input type="text" name="wr_subject" value="<?php echo $subject ?>"
id="wr_subject" required class="frm_input full_input required" size="50"
maxlength="255" placeholder="">
</li>
</ul>
<ul class="form_title">
<li class="bo_w_sbj">
<label for="wr_name" class="sound_only">이름</label>
<input type="text" name="wr_name" value="<?php echo $wr_name ?>" id="wr_name"
required class="frm_input half_input required" placeholder="">
</li>
</ul>
<ul class="form_title">
<li class="bo_w_sbj">
<label for="wr_1" class="sound_only">연락처</label>
<input type="text" name="wr_1" value="<?php echo $wr_1 ?>" id="wr_1" required
class="frm_input required" placeholder="ex) *** 개인정보보호를 위한 휴대폰번호 노출방지 ***">
</li>
</ul>
<ul class="form_title">
<li class="bo_w_sbj bo_w_mail">
<label for="wr_email" class="sound_only">이메일</label>
<input type="text" name="wr_email" value="<?php echo $wr_email ?>" id="wr_email"
required class="frm_input half_input email " placeholder="">
</li>
</ul>
<ul class="form_area">
<li class="bo_w_sbj bo_w_hp">
<label for="wr_content" class="sound_only">문의내용</label>
<div
class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
</div>
</li>
</ul>
</ul>
</div>
<div class="signbox">
<div class="sign_agree">
<input type="checkbox" id="check1" name="agree">
<label for="check1" class=checkst></label>
<span class="check_t">개인정보 수집에 동의합니다.</span>
</div>
<div class="btn_confirm write_div2">
<button type="submit" id="btn_submit" accesskey="s"
class="btn_submit btn">문의하기</button>
</div>
</div>
</form>
</section>
답변 1
required 이소스가 필수여부 입니다.
제목 작성에 필수가 들어가 있습니다.
이부분을 지우시면 되실거 같구요
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input full_input required" size="50" maxlength="255" placeholder="">
저장시 에도 확인을 하는데요 그부분에서도 확인체크를 꺼주시면 아마 되실거라 봅니다.
답변을 작성하시기 전에 로그인 해주세요.