테스트 사이트 - 개발 중인 베타 버전입니다

문의게시판 스킨에 이름, 제목 사용안하고 싶습니다. 채택완료

myfree 9개월 전 조회 1,449

○ 메인에서 상담문의 작성하기

https://sir.kr/g5_skin/60030?arm=1928440#c_61283

 

 

질문 :

이름, 이메일, 상담제목을 없애고 전화번호와 문의내용만 사용하고 싶습니다.

 

현재 이름, 전화번호, 상담제목이 필수로 들어가게끔 되어있습니다.

 

http://sir.kr/data/editor/2501/237506203_1737676948.3265.jpg" width="100%" />

 

 

 

</p>

<p><ul>

    <form name="frm" method="post" action="<?php echo G5_URL; ?>/bbs/write_update.php" onsubmit="return checkFrm(this);">

        <input type="hidden" name="bo_table" value="<?=$bo_table?>">

        <input type="hidden" name="token" value="<?php echo get_write_token($bo_table); ?>">

        <input type="hidden" name="w" value=""></p>

<p>        <label for="wr_name" class="sound_only">이름<strong>필수</strong></label>

        <input type="text" name="wr_name" value="<?php echo get_text($member_name); ?>" id="wr_name" required class="frm_input half_input required" placeholder="이름" onkeyup="validateName(this)"></p>

<p>        <?php if ($is_password) { ?>

            <label for="wr_password" class="sound_only">비밀번호<strong>필수</strong></label>

            <input type="password" name="wr_password" id="wr_password" required class="frm_input half_input" placeholder="비밀번호">

        <?php } ?>

        <label for="wr_10" class="sound_only">전화번호<strong>필수</strong></label>

        <input type="text" name="wr_10" value="<?php echo get_text($member_hp); ?>" id="wr_10" required class="frm_input half_input required" placeholder="전화번호" oninput="formatPhoneNumber(this)"></p>

<p>        <label for="wr_email" class="sound_only">이메일</label>

        <input type="text" name="wr_email" value="<?php echo get_text($member_email); ?>" id="wr_email" class="frm_input half_input email " placeholder="이메일">

        <label for="wr_subject" class="sound_only">상담제목<strong>필수</strong></label>

        <input type="text" name="wr_subject" id="wr_subject" required class="frm_input full_input required" size="50" maxlength="255" placeholder="상담제목"></p>

<p>        <label for="wr_content" class="sound_only">문의내용<strong>필수</strong></label>

        <textarea name="wr_content" id="wr_content" placeholder="문의내용" required itemname="문의내용"></textarea>

        <div class="captcha_wp <?php echo !$is_use_captcha ? 'no-captcha' : ''; ?>">

          <?php if ($is_use_captcha) { // 캡차 사용 여부 확인 ?>

          <div class="write_div">

              <div class="captcha-container">

                  <?php echo $captcha_html; // 캡차 HTML 출력 ?>

              </div>

          </div>

          <?php } ?>

          <input type="submit" name="image" value="상담문의" class="submit-button" alt="상담문의">

      </div>

    </form>

</ul></p>

<p>

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

답변 2개

채택된 답변
+20 포인트
hiiann
9개월 전

제거하고 싶은 부분을 주석처리해도 안되시나요?

로그인 후 평가할 수 있습니다

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

9개월 전

질문에 답변이 있네요. ㅎㅎ  필수값이 꼭 들어가야합니다.  쓰기 처리하는 부분에 그 값이 반듯이 들어가야하는데요 .  필수인값을 input type="hidden" name="필수로가는 필드"  value="값을 강제로 넣어줌"   해서 강제로 값을 넘겨버리시면 간단하게 해결 됩니다. 물론  값을 넣는 항목은 삭제 해야 합니다. 

 

 

로그인 후 평가할 수 있습니다

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

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

로그인