2026, 새로운 도약을 시작합니다.

게시글 작성시 시간이 오래 걸립니다. 채택완료

5년 전 조회 2,716

1935538741_1593053964.2088.png

위 이미지처럼 메인화면에서 간단히 상담신청 게시글을 적게

form.php 파일을 인크루드 시켜 적용했습니다.

게시글 작성은 정상적으로 이루어 집니다.

하지만 상담신청을 클릭한 후 게시글 작성까지 한참 시간이 걸립니다.

아래 작동 파일 소스 첨부 합니다..

버퍼링이 걸리는 이유가 멀까요??

아래는 form.php 파일소스입니다.

Copy






.parallaxCover3 {

    padding: 60px 0;

    width: 100%;

    height: auto;

    color: #fff;

}

.anb-parallax-3 {background-position: center; background-repeat: no-repeat;}

.anb-contact {font-family: Segoe UI,SegoeUI,Microsoft YaHei,Helvetica Neue,Hiragino Sans GB,Heiti SC,Helvetica,Arial,sans-serif,Roboto !important;}

.anb-contact li { display: flex; margin: 30px 0; }

.anb-contact .form-control { 

    background: #161f26;

    color: #FFF;

    font-weight: 700;

    border-color: transparent;

    border-radius: 4px !important;

}

.anb-contact .form-group input, .form-group textarea { 

    padding: 15px; 

}

.anb-contact .form-group input.form-control {

  height: auto;

}

.anb-contact ::-webkit-input-placeholder {

    text-transform: uppercase;

    font-weight: 700;

    color: #eeeeee;

    opacity:  1;

}

.anb-contact :-moz-placeholder {

    text-transform: uppercase;    

    font-weight: 1000;

    color: #eeeeee;

    opacity:  1;

}

.anb-contact ::-moz-placeholder {

    text-transform: uppercase;

    font-weight: 700;

    color: #eeeeee;

    opacity:  1;

}

.anb-contact :-ms-input-placeholder {

    text-transform: uppercase;

    font-weight: 700;

    color: #eeeeee;

    opacity:  1;    

}

.anb-contact ::placeholder { 

    text-transform: uppercase;

    font-weight: 700;

    color: #eeeeee;

   opacity:  1;

}

.anb-contact .form-group textarea.form-control {

    height: 160px;

}

.anb-contact {

    scrollbar-face-color: #6a6b6d;

    scrollbar-shadow-color: #77787b;

    scrollbar-highlight-color: #77787b;

    scrollbar-3dlight-color: #2a2b30;

    scrollbar-darkshadow-color: #2a2b30;

    scrollbar-track-color: #2a2b30;

    scrollbar-arrow-color: #6f7073;

}

.anb-contact ::-webkit-scrollbar{

    width: 10px;

}

.anb-contact ::-webkit-scrollbar-thumb{

     background: #666; border-radius: 20px;

}

.anb-contact ::-webkit-scrollbar-track{

    background: #8e8e8e; border-radius: 20px;

}

.anb-contact  .anb-submit { 

    background-color: #007db6; border-color: #0072a6;border-radius: 4px !important; 

}

.anb-contact  .anb-submit:hover{ 

    background-color: #00628f; border-color: #005378; color:#fff;

}

#anb-contact { height:100%;overflow:scroll; overflow-x:hidden;}



* 무엇이든 물어보세요 *


 

  > 개인정보수집이용에 동의합니다.






상담 신청










$(document).ready(function(e) {

    $('.anb-submit').click(function(){

        var sName = $('#anb-contact-name').val();

        var sEmail = $('#anb-contact-email').val();

        var sPhone = $('#anb-contact-phone').val();

        var sMessage = $('#anb-contact-message').val();

        if ($.trim(sName).length == 0) {

            alert('성함을 입력해 주세요');

            return;

        }

        if ($.trim(sEmail).length == 0) {

            alert('메일주소 적어주세요');

            return;

        }

        if ($.trim(sPhone).length == 0) {

            alert('휴대폰 번호 입력하세요');

            return;

        }

        if ($.trim(sMessage).length == 0) {

            alert('상담내용을 입력하세요');

            return;

        }

        if (validateEmail(sEmail)) {

            ajax_contact2 ();

        }else {

            alert('메일주소 틀렸습니다');

            return;

        }

    });

});

function validateEmail(sEmail) {

    var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;

    if (filter.test(sEmail)) {

        return true;

    }

    else {

        return false;

    }

}

function ajax_contact2 (){

    var sName = $('#anb-contact-name').val();

    var sEmail = $('#anb-contact-email').val();

    var sPhone = $('#anb-contact-phone').val();

    var sMessage = $('#anb-contact-message').val();

            if(data.result == 'success' ){

                //성공시 폼삭제

                $('#anb-contact-name').val('');

                $('#anb-contact-email').val('');

                $('#anb-contact-phone').val('');

                $('#anb-contact-message').val('');

                alert(data.msg);

            }

}

//maxlength 체크

function maxLengthCheck(object){

    if (object.value.length > object.maxLength){

        object.value = object.value.slice(0, object.maxLength);

    }

}

//숫자만남기고제거

function onlynumberic(event) {

    event.target.value = event.target.value.replace(/[^0-9]/g, "");

}

function submitChk(f)

  {

      f.action = "../form_ok.php";

      return true;

  }



아래는 form_ok.php 파일소스입니다.

Copy

답변 1개

채택된 답변
+20 포인트

메일 발송 코드가 포함되어 있네요.

메일 서버 문제일 수도 있으니 환경설정 > 기본환경설정에서 메일발송 기능을 끄고 테스트해보세요.

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

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

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

로그인
🐛 버그신고