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

회원가입시 빈화면 팝업 뜨면서 가입이 안되요

깍끙깍끙끙 4년 전 조회 3,373

안녕하세요~

기존에는 잘됬던 기능이였는데 어느순간 안되더라구요..

아마 뭘 건들였나본데.. 어느부분을 봐야할지 잘모르겠어요 질문남겨요~

 

회원가입시 중복체크 누르면 빈팝업으로 뜨구요,

필드다 채우고 회원가입누르면 빈팝업 뜨면서 가입완료가 되지않아요.

 

 

 

그리고 아이디쪽 필드 비우거나, 맞지않는 내용 쓰면.. 저건 또 팝업내용이 뜨긴해요~

 

 

관련 코드도 첨부해 볼께요. (어떤걸 올려야할지몰라서.ㅎㅎㅎ 얘기해주시면 올릴께요~)

초보라서 자세하게 알려주시면 감사하겠습니다~

감사합니다~

 

 

# register_form_skin.php

</p>

<p><span style="font-size:8pt;"><?php

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가</span></p>

<p><span style="font-size:8pt;">// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);

?></span></p>

<p><span style="font-size:8pt;"><div id="wrapper" class="account_area">

    <div id="container_wr">

        <div id="container">

            <div class="sub_header">

                <div class="sub_title">

                    <h1>회원가입</h1>

                    <!--span>회원가입약관 및 개인정보처리방침안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</span-->

                </div>

                <div class="sub_location">

                    <span>홈</span><span>회원가입</span></span>

                </div>

            </div><!-- sub_header --></span></p>

<p><span style="font-size:8pt;"><!-- 회원정보 입력/수정 시작 { -->

<div class="register">

    <script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script>

    <?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>

    <script src="<?php echo G5_JS_URL ?>/certify.js?v=<?php echo G5_JS_VER; ?>"></script>

    <?php } ?></span></p>

<p><span style="font-size:8pt;">    <form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">

    <input type="hidden" name="w" value="<?php echo $w ?>">

    <input type="hidden" name="url" value="<?php echo $urlencode ?>">

    <input type="hidden" name="agree" value="<?php echo $agree ?>">

    <input type="hidden" name="agree2" value="<?php echo $agree2 ?>">

    <input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">

    <input type="hidden" name="cert_no" value="">

    <?php if (isset($member['mb_sex'])) {  ?><input type="hidden" name="mb_sex" value="<?php echo $member['mb_sex'] ?>"><?php }  ?>

    <?php if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 닉네임수정일이 지나지 않았다면  ?>

    <input type="hidden" name="mb_nick_default" value="<?php echo get_text($member['mb_nick']) ?>">

    <input type="hidden" name="mb_nick" value="<?php echo get_text($member['mb_nick']) ?>">

    <?php }  ?>

    

        <div id="register_form" class="form_01">   

            <div class="register_form_inner">

                <h2>기본 정보</h2>

                <ul>

                    <li>

                        <label for="reg_mb_id">

                            아이디<strong class="sound_only">필수</strong>

                            <button type="button" class="tooltip_icon"><i class="fa fa-question-circle-o" aria-hidden="true"></i><span class="sound_only">설명보기</span></button>

                            <span class="tooltip">최소 3자이상의 영문 소문자, 숫자와 특수기호(_)만 사용가능</span>

                        </label>

                        <div class="acc_id_wrap">

                            <div class="acc_id">

                                <input type="text" name="mb_id" value="<?php echo $member['mb_id'] ?>" id="reg_mb_id" <?php echo $required ?> <?php echo $readonly ?> class="frm_input full_input <?php echo $required ?> <?php echo $readonly ?>" minlength="3" maxlength="20" placeholder="아이디">

                            </div>

                            <div class="acc_id_btn"><button href="javascript:;" onclick="chk_reg('id');" class="line_navy idcheck">중복체크</button></div>

                            <span id="msg_mb_id"></span>

                        </div>

                    </li>

                    <li class="">

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

                        <input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호">

                    </li>

                    <li class="">

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

                        <input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input full_input <?php echo $required ?>" minlength="3" maxlength="20" placeholder="비밀번호 확인">

                    </li>

                </ul>

            </div>

        

            <div class="tbl_frm01 tbl_wrap register_form_inner">

                <h2>회원정보</h2>

                <ul>

                    <!-- 기업명 추가-->

                    <li>

                        <label for="reg_mb_1">기업명<strong class="sound_only">필수</strong></label>

                        <input type="text" name="mb_1" value="<?php echo $member['mb_1'] ?>" id="reg_mb_1" <?php echo $required ?> <?php echo $readonly ?> class="frm_input full_input <?php echo $required ?> <?php echo $readonly ?>" size="10" maxlength="300" placeholder="기업명">

                        <span id="msg_mb_1"></span>

                    </li>

                    <li>

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

                        <input type="text" id="reg_mb_name" name="mb_name" value="<?php echo get_text($member['mb_name']) ?>" <?php echo $required ?> <?php echo $readonly; ?> class="frm_input full_input <?php echo $required ?> <?php echo $readonly ?>" size="10" placeholder="이름">

                        <?php

                        if($config['cf_cert_use']) {

                            if($config['cf_cert_ipin'])

                                echo '<button type="button" id="win_ipin_cert" class="btn_frmline">아이핀 본인확인</button>'.PHP_EOL;

                            if($config['cf_cert_hp'])

                                echo '<button type="button" id="win_hp_cert" class="btn_frmline">휴대폰 본인확인</button>'.PHP_EOL;

        

                            echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>'.PHP_EOL;

                        }

                        ?>

                        <?php

                        if ($config['cf_cert_use'] && $member['mb_certify']) {

                            if($member['mb_certify'] == 'ipin')

                                $mb_cert = '아이핀';

                            else

                                $mb_cert = '휴대폰';

                        ?>

          

                        <div id="msg_certify">

                            <strong><?php echo $mb_cert; ?> 본인확인</strong><?php if ($member['mb_adult']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료

                        </div>

                        <?php } ?>

                        <?php if ($config['cf_cert_use']) { ?>

                        <button type="button" class="tooltip_icon"><i class="fa fa-question-circle-o" aria-hidden="true"></i><span class="sound_only">설명보기</span></button>

                        <span class="tooltip">아이핀 본인확인 후에는 이름이 자동 입력되고 휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되어 수동으로 입력할수 없게 됩니다.</span>

                        <?php } ?>

                    </li>

                   

        

                    <li>

                        <label for="reg_mb_email">E-mail<strong class="sound_only">필수</strong>

                        

                        <?php if ($config['cf_use_email_certify']) {  ?>

                        <button type="button" class="tooltip_icon"><i class="fa fa-question-circle-o" aria-hidden="true"></i><span class="sound_only">설명보기</span></button>

                        <span class="tooltip">

                            <?php if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; }  ?>

                            <?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; }  ?>

                        </span>

                        <?php } ?>

                        </label>

                        <input type="hidden" name="old_email" value="<?php echo $member['mb_email'] ?>">

                        <input type="text" name="mb_email" value="<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" required class="frm_input email full_input required" size="70" maxlength="100" placeholder="E-mail">

                    

                    </li>

        

                    <?php if ($config['cf_use_homepage']) {  ?>

                    <li>

                        <label for="reg_mb_homepage">홈페이지<?php if ($config['cf_req_homepage']){ ?><strong class="sound_only">필수</strong><?php } ?></label>

                        <input type="text" name="mb_homepage" value="<?php echo get_text($member['mb_homepage']) ?>" id="reg_mb_homepage" <?php echo $config['cf_req_homepage']?"required":""; ?> class="frm_input full_input <?php echo $config['cf_req_homepage']?"required":""; ?>" size="70" maxlength="255" placeholder="홈페이지">

                    </li>

                    <?php }  ?>

        

                    <li>

                    <?php if ($config['cf_use_tel']) {  ?>

                    

                        <label for="reg_mb_tel">전화번호<?php if ($config['cf_req_tel']) { ?><strong class="sound_only">필수</strong><?php } ?></label>

                        <input type="text" name="mb_tel" value="<?php echo get_text($member['mb_tel']) ?>" id="reg_mb_tel" <?php echo $config['cf_req_tel']?"required":""; ?> class="frm_input full_input <?php echo $config['cf_req_tel']?"required":""; ?>" maxlength="11" placeholder="전화번호">

                    <?php }  ?>

                    </li>

                    <li>

                    <?php if ($config['cf_use_hp'] || $config['cf_cert_hp']) {  ?>

                        <label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label>

                        

                        <input type="text" name="mb_hp" value="<?php echo get_text($member['mb_hp']) ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input full_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="11" placeholder="휴대폰번호">

                        <?php if ($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>

                        <input type="hidden" name="old_mb_hp" value="<?php echo get_text($member['mb_hp']) ?>">

                        <?php } ?>

                    <?php }  ?>

                    </li>

        

                    <?php if ($config['cf_use_addr']) { ?>

                    <li>

                        <label>주소</label>

                        <?php if ($config['cf_req_addr']) { ?><strong class="sound_only">필수</strong><?php }  ?>

                        <label for="reg_mb_zip" class="sound_only">우편번호<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>

                        <input type="text" name="mb_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="reg_mb_zip" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input twopart_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="5" maxlength="6"  placeholder="우편번호">

                        <button type="button" class="btn_frmline" onclick="win_zip('fregisterform', 'mb_zip', 'mb_addr1', 'mb_addr2', 'mb_addr3', 'mb_addr_jibeon');">주소 검색</button>


                        <input type="text" name="mb_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="reg_mb_addr1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address full_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="50"  placeholder="기본주소">

                        <label for="reg_mb_addr1" class="sound_only">기본주소<?php echo $config['cf_req_addr']?'<strong> 필수</strong>':''; ?></label>


                        <input type="text" name="mb_addr2" value="<?php echo get_text($member['mb_addr2']) ?>" id="reg_mb_addr2" class="frm_input frm_address full_input" size="50" placeholder="상세주소">

                        <label for="reg_mb_addr2" class="sound_only">상세주소</label>

                        


                        <input type="text" name="mb_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="reg_mb_addr3" class="frm_input frm_address full_input" size="50" readonly="readonly" placeholder="참고항목">

                        <label for="reg_mb_addr3" class="sound_only">참고항목</label>

                        <input type="hidden" name="mb_addr_jibeon" value="<?php echo get_text($member['mb_addr_jibeon']); ?>">

                    </li>

                    <?php }  ?>

                </ul>

            </div>

        

        </div>

        <div class="btn_confirm">

            <a href="<?php echo G5_URL ?>" class="btn_close">취소</a>

            <button type="submit" id="btn_submit" class="btn_submit" accesskey="s"><?php echo $w==''?'회원가입':'정보수정'; ?></button>

        </div>

    </form>

</div>

</div>

</div>

</div></span></p>

<p><span style="font-size:8pt;"><script>

$(".idcheck").click(function(){</span></p>

<p><span style="font-size:8pt;">    var msg = reg_mb_id_check();

 

    if(msg == "" || msg == null){

        if(!confirm("가입할 수 있는 아이디입니다.\n현재 아이디를 사용하시겠습니까?")){

            document.getElementById("reg_mb_id").value = "";

        }

    }

    else

    {

        alert(msg);

    }

});</span></p>

<p><span style="font-size:8pt;"></script>

<script></span></p>

<p>

<span style="font-size:8pt;">$(function() {

    $("#reg_zip_find").css("display", "inline-block");</span></p>

<p><span style="font-size:8pt;">    <?php if($config['cf_cert_use'] && $config['cf_cert_ipin']) { ?>

    // 아이핀인증

    $("#win_ipin_cert").click(function() {

        if(!cert_confirm())

            return false;</span></p>

<p><span style="font-size:8pt;">        var url = "<?php echo G5_OKNAME_URL; ?>/ipin1.php";

        certify_win_open('kcb-ipin', url);

        return;

    });</span></p>

<p><span style="font-size:8pt;">    <?php } ?>

    <?php if($config['cf_cert_use'] && $config['cf_cert_hp']) { ?>

    // 휴대폰인증</span></p>

<p><span style="font-size:8pt;">    $("#win_hp_cert").click(function() {

        if(!cert_confirm())

            return false;</span></p>

<p><span style="font-size:8pt;">        <?php

        switch($config['cf_cert_hp']) {

            case 'kcb':

                $cert_url = G5_OKNAME_URL.'/hpcert1.php';

                $cert_type = 'kcb-hp';

                break;

            case 'kcp':

                $cert_url = G5_KCPCERT_URL.'/kcpcert_form.php';

                $cert_type = 'kcp-hp';

                break;

            case 'lg':

                $cert_url = G5_LGXPAY_URL.'/AuthOnlyReq.php';

                $cert_type = 'lg-hp';

                break;

            default:

                echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';

                echo 'return false;';

                break;

        }

        ?></span></p>

<p><span style="font-size:8pt;">        certify_win_open("<?php echo $cert_type; ?>", "<?php echo $cert_url; ?>");

        return;

    });

    <?php } ?>

});</span></p>

<p><span style="font-size:8pt;">// submit 최종 폼체크

function fregisterform_submit(f)

{

    // 회원아이디 검사

    if (f.w.value == "") {

        var msg = reg_mb_id_check();

        if (msg) {

            alert(msg);

            f.mb_id.select();

            return false;

        }

    }</span></p>

<p>

<span style="font-size:8pt;">    if (f.w.value == "") {

        if (f.mb_password.value.length < 3) {

            alert("비밀번호를 3글자 이상 입력하십시오.");

            f.mb_password.focus();

            return false;

        }

    }</span></p>

<p><span style="font-size:8pt;">    if (f.mb_password.value != f.mb_password_re.value) {

        alert("비밀번호가 같지 않습니다.");

        f.mb_password_re.focus();

        return false;

    }</span></p>

<p><span style="font-size:8pt;">    if (f.mb_password.value.length > 0) {

        if (f.mb_password_re.value.length < 3) {

            alert("비밀번호를 3글자 이상 입력하십시오.");

            f.mb_password_re.focus();

            return false;

        }

    }</span></p>

<p><span style="font-size:8pt;">    // 이름 검사

    if (f.w.value=="") {

        if (f.mb_name.value.length < 1) {

            alert("이름을 입력하십시오.");

            f.mb_name.focus();

            return false;

        }</span></p>

<p><span style="font-size:8pt;">        /*

        var pattern = /([^가-힣\x20])/i;

        if (pattern.test(f.mb_name.value)) {

            alert("이름은 한글로 입력하십시오.");

            f.mb_name.select();

            return false;

        }

        */

    }</span></p>

<p><span style="font-size:8pt;">// 기업명 체크

    if (f.w.value=="") {

        if (f.mb_1.value.length < 1) {

            alert("기업명을 입력하세요");

            f.mb_1.focus();

            return false;

        }</span></p>

<p><span style="font-size:8pt;">     }</span></p>

<p><span style="font-size:8pt;">    <?php if($w == '' && $config['cf_cert_use'] && $config['cf_cert_req']) { ?>

    // 본인확인 체크

    if(f.cert_no.value=="") {

        alert("회원가입을 위해서는 본인확인을 해주셔야 합니다.");

        return false;

    }

    <?php } ?></span></p>

<p>

<span style="font-size:8pt;">    // E-mail 검사

    if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {

        var msg = reg_mb_email_check();

        if (msg) {

            alert(msg);

            f.reg_mb_email.select();

            return false;

        }

    }</span></p>

<p><span style="font-size:8pt;">    <?php if (($config['cf_use_hp'] || $config['cf_cert_hp']) && $config['cf_req_hp']) {  ?>

    // 휴대폰번호 체크

    var msg = reg_mb_hp_check();

    if (msg) {

        alert(msg);

        f.reg_mb_hp.select();

        return false;

    }

    <?php } ?></span></p>

<p><span style="font-size:8pt;">    if (typeof f.mb_icon != "undefined") {

        if (f.mb_icon.value) {

            if (!f.mb_icon.value.toLowerCase().match(/.(gif|jpe?g|png)$/i)) {

                alert("회원아이콘이 이미지 파일이 아닙니다.");

                f.mb_icon.focus();

                return false;

            }

        }

    }</span></p>

<p><span style="font-size:8pt;">    if (typeof f.mb_img != "undefined") {

        if (f.mb_img.value) {

            if (!f.mb_img.value.toLowerCase().match(/.(gif|jpe?g|png)$/i)) {

                alert("회원이미지가 이미지 파일이 아닙니다.");

                f.mb_img.focus();

                return false;

            }

        }

    }</span></p>

<p><span style="font-size:8pt;">    if (typeof(f.mb_recommend) != "undefined" && f.mb_recommend.value) {

        if (f.mb_id.value == f.mb_recommend.value) {

            alert("본인을 추천할 수 없습니다.");

            f.mb_recommend.focus();

            return false;

        }</span></p>

<p><span style="font-size:8pt;">        var msg = reg_mb_recommend_check();

        if (msg) {

            alert(msg);

            f.mb_recommend.select();

            return false;

        }

    }</span></p>

<p>

<span style="font-size:8pt;">    document.getElementById("btn_submit").disabled = "disabled";</span></p>

<p><span style="font-size:8pt;">    return true;

}</span></p>

<p><span style="font-size:8pt;">jQuery(function($){

    //tooltip

    $(document).on("click", ".tooltip_icon", function(e){

        $(this).next(".tooltip").fadeIn(400).css("display","inline-block");

    }).on("mouseout", ".tooltip_icon", function(e){

        $(this).next(".tooltip").fadeOut();

    });

});</span></p>

<p><span style="font-size:8pt;"></script></span></p>

<p><span style="font-size:8pt;"><!-- } 회원정보 입력/수정 끝 --></span></p>

<p>

 

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

답변 1개

식쏭
4년 전

 

 

</p>

<p><button href="javascript:;" onclick="chk_reg('id');" class="line_navy idcheck">중복체크</button></p>

<p>

일단 onclick="chk_reg('id');" 제거 하세요. 

중복체크가 클릭될때, reg_mb_id_check(); 가 그누보드 기본 그대로(커스터마이징 없었다면) 실행되면 

회원가입 폼 fregisterform 에 <input type=hidden name=mb_id_enabled    value="" id="mb_id_enabled"> 도 있어야 할겁니다.

일단 이렇게 수정 후에도 안되면 의뢰를 하시는게 좋을것 같네요

 

 

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

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

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

로그인