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

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

QA

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

본문

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

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

 

 

질문 :

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

 

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

 

237506203_1737676948.3265.jpg

 

 

 


<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="">
        <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)">
        <?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)">
        <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="상담제목">
        <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>

이 질문에 댓글 쓰기 :

답변 2

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

 

 

답변을 작성하시기 전에 로그인 해주세요.
전체 129,100 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT