회원가입 시 휴대폰번호 중복 체크

회원가입 시 휴대폰번호 중복 체크

QA

회원가입 시 휴대폰번호 중복 체크

답변 1

본문


<tr>
            <th scope="row"><label for="mb_hp">휴대전화번호<strong class="sound_only">필수</strong></label></th>
            <td>
                <input type="text" name="mb_hp" value="<?php echo isset($user_mobile)?$user_mobile:''; ?>" id="mb_hp" required class="frm_input" size="70" readonly maxlength="100" placeholder="전화번호를 입력해주세요." >
            </td>
        </tr>

 

현재 소셜로그인 시 위 코드를 통해서 휴대폰번호를 받고 있습니다. 이메일처럼 같은 번호를 사용하고 있으면 가입을 못하게 하려는데 중복검사체크를 어떻게 해야하는지 모르겠습니다 ㅠㅠ

 

기존 로그인에 있는 중복검사는 휴대폰 인증 시 그 과정에서 체크가 되는거 같은데 휴대폰 인증없이 이메일처럼 검사하려면 어떻게 해야하나요??

 


    // 휴대폰번호검사
        if (f.w.value == "") {
            var msg = reg_mb_hp_check();
            if (msg) {
                alert(msg);
                f.mb_hp.select();
                return false;
            }
        }
        if (f.w.value == "") {

 

 

이 질문에 댓글 쓰기 :

답변 1

https://github.com/gnuboard/gnuboard5/blob/master/skin/member/basic/register_form.skin.php#L451


<?php // if (($config['cf_use_hp'] || $config['cf_cert_hp']) && $config['cf_req_hp']) {  ?>
<?php if ($config['cf_use_hp'] && $config['cf_req_hp']) {  ?>
...
var msg = reg_mb_hp_check();
...
<?php } ?>
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 1,977
© SIRSOFT
현재 페이지 제일 처음으로