글작성완료시 "멘트"가 나타나게 하려면!!!!
작성후 글쓰기 누르면
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");
}
?>
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으로 바꿔서 날리시면 해결될꺼 같습니다.
이부분을 iframe으로 바꿔서 날리시면 해결될꺼 같습니다.
june55
14년 전
위와 같이 해보았으나 해결이 안되네요!
14년 전
바꾸셨던 소스를 볼수있을까요?
june55
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");
}
?>
제가 초보입니다
제가 잘못이해 했다면
수정부분을 자세하게 알려주시면 좋겠습니다.
$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>";
}
이렇게 변경해보세요
이부분을
if($url) {
echo "<iframe src=".$url.")></iframe>";
}
이렇게 변경해보세요
june55
14년 전
덕분에 잘 해결했습니다
진심으로 감사드립니다.... 꾸벅
진심으로 감사드립니다.... 꾸벅
ManuS
14년 전
오 좋은 질문답변 입니다~ 저도 생각하던건데, 이렇게 정보를 얻게 되었습니다. ^^
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10923 | ||
| 66550 | 11년 전 | 10495 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기