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

글작성완료시 "멘트"가 나타나게 하려면!!!!

· 14년 전 · 1359 · 7
작성후 글쓰기 누르면
sms 통보는 오는데 멘트 (접수되었습니다.빠른시간내에 연락드리겠습니다!)가 나타나지않습니다.

***********************************************************************
요부분 앞에 주석처리 // echo "<script>location.href='$url';</script>";
하면 멘트는 나타나고 sms가 작동을 하지않습니다.

**********************************************************************
위 2가지를 사용할 수있게 수정하는 방법은 없나요!
(그누보드4 최신 으로 업그레이드 했습니다)

소스위치
skin/board/reservation/write_update.sskin.php

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 자신만의 코드를 넣어주세요.

//주민등록번호
$wr_4 = "$ext4_00-$ext4_01";
$sql4 = " update $write_table set wr_4 = '$wr_4' where wr_id = '$wr_id' ";
sql_query($sql4);

//연락가능한 전화번호1
$wr_5 = "$ext5_00-$ext5_01-$ext5_02";
$sql5 = " update $write_table set wr_5 = '$wr_5' where wr_id = '$wr_id' ";
sql_query($sql5);

//연락가능한 전화번호2
$wr_6 = "$ext6_00-$ext6_01-$ext6_02";
$sql6 = " update $write_table set wr_6 = '$wr_6' where wr_id = '$wr_id' ";
sql_query($sql6);

if($w != 'u') {
$user_id = base64_encode("june55");
$passwd = base64_encode("sp0103");
$msg = "견적요청이 있습니다, ".$wr_name.":".$wr_5;
$msg = urlencode(base64_encode($msg));
$rphone = base64_encode("011-1234-1234");
$sphone1 = base64_encode($ext5_00);
$sphone2 = base64_encode($ext5_01);
$sphone3 = base64_encode($ext5_02);
$rdate = base64_encode($_POST['rdate']);
$rtime = base64_encode($_POST['rtime']);
$mode = base64_encode("1"); // base64 사용시 반드시 모드값을 1로 주셔야 합니다.
$returnurl = base64_encode("http://spacedesign.co.kr/");
$testflag = base64_encode($_POST['testflag']);
$destination = urlencode(base64_encode($_POST['destination']));

//utf-8 환경에서는 iconv를 이용하여 ecu-kr로 변경해주셔야 원할한 이용 가능합니다.
//$destination = urlencode(base64_encode(iconv('utf-8','euc-kr',$_POST['destination'])));

$repeatFlag = base64_encode($_POST['repeatFlag']);
$repeatNum = base64_encode($_POST['repeatNum']);
$repeatTime = base64_encode($_POST['repeatTime']);
$nointeractive = base64_encode("1"); // 성공시 대화 상자를 사용 하지 않게 합니다.

$url.= "http://sms.june55.cafe24.com/sms_send_new.php?user_id=$user_id&passwd=$passwd&msg=$msg&rphone=$rphone&sphone1=$sphone1"; // smsid 대신 고객님의 아이디를 넣으시면 됩니다.
$url.= "&sphone2=$sphone2&sphone3=$sphone3&rdate=$rdate&rtime=$rtime&mode=$mode&returnurl=$returnurl&nointeractive=$nointeractive&testflag=$testflag";
$url.= "&destination=$destination&repeatFlag=$repeatFlag&repeatNum=$repeatNum&repeatTime=$repeatTime";
echo "<script>location.href='$url';</script>";

alert("접수되었습니다.빠른시간내에 연락드리겠습니다!", "./board.php?bo_table=$bo_table&sca=$ca_name");

}
?>

댓글 작성

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

로그인하기

댓글 7개

14년 전
echo "<script>location.href='$url';</script>";

이부분을 iframe으로 바꿔서 날리시면 해결될꺼 같습니다.
위와 같이 해보았으나 해결이 안되네요!
14년 전
바꾸셨던 소스를 볼수있을까요?
1(안)
$url.= "&destination=$destination&repeatFlag=$repeatFlag&repeatNum=$repeatNum&repeatTime=$repeatTime";
iframe "<script>location.href='$url';</script>";

alert("접수되었습니다.빠른시간내에 연락드리겠습니다!", "./board.php?bo_table=$bo_table&sca=$ca_name");

}
?>

2(안)
$url.= "&destination=$destination&repeatFlag=$repeatFlag&repeatNum=$repeatNum&repeatTime=$repeatTime";
iframe
alert("접수되었습니다.빠른시간내에 연락드리겠습니다!", "./board.php?bo_table=$bo_table&sca=$ca_name");

}
?>


제가 초보입니다

제가 잘못이해 했다면
수정부분을 자세하게 알려주시면 좋겠습니다.
14년 전
echo "<script>location.href='$url';</script>";

이부분을
if($url) {
echo "<iframe src=".$url.")></iframe>";
}

이렇게 변경해보세요
덕분에 잘 해결했습니다

진심으로 감사드립니다.... 꾸벅
오 좋은 질문답변 입니다~ 저도 생각하던건데, 이렇게 정보를 얻게 되었습니다. ^^

게시글 목록

번호 제목
284348
284336
284333
284332
284320
284318
284316
284313
284307
284306
284303
284298
284296
284290
284286
284280
284277
284272
284261
284259