채택완료

게시판 제목을 입력하세요. 뜨는 이유

2023-04-07 (금) 11:14:25 1,687

qa 게시판에 문의하기 form을 만들었습니다.

근데 계속 제목을 입력하라고 뜨네요.

제가 봤을 땐 코드에 문제가 없어보이는데 혹시 코드에 문제가 있는건가요?

아니면 다른 문제가 있는건가요?

Copy
<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">문의작성&nbsp;

                                    <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) 010-1234-5678">

                                    </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개 / 댓글 3개

채택된 답변
+20 포인트
2023-04-07 (금) 14:12:29

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="">

저장시 에도 확인을 하는데요 그부분에서도 확인체크를 꺼주시면 아마 되실거라 봅니다.

답변에 대한 댓글 3개

저장시에 확인하는 부분은 어디에 있을까요..?ㅜㅜ
2023-04-07 (금) 15:40:12
작업자 마다 다를텐데요
저는 저장시에 게시판 하나 만든다음 그쪽으로 저장을 합니다.
파일내에 저장 소스가 없다고 한다면.. 일반 게시판을 하나 추가 하시고, 그쪽으로 저장하는 소스를 작성하셔야 합니다.

게시판 디비 구조에 맞추어 저장 하시면 게시판에서 확인이 가능합니다.

참고할만한 저장 소스는
https://sir.kr/qa/299930
알려주신대로 해보겠습니다! 감사합니다!

답변을 작성하려면 로그인이 필요합니다.