j

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

· 2011-10-18 (화) 11:35:31 · 1490 · 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개

2011-10-18 (화) 12:49:09
echo "<script>location.href='$url';</script>";

이부분을 iframe으로 바꿔서 날리시면 해결될꺼 같습니다.
위와 같이 해보았으나 해결이 안되네요!
2011-10-18 (화) 13:51:54
바꾸셨던 소스를 볼수있을까요?
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");

}
?>


제가 초보입니다

제가 잘못이해 했다면
수정부분을 자세하게 알려주시면 좋겠습니다.
2011-10-18 (화) 14:52:55
echo "<script>location.href='$url';</script>";

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

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

진심으로 감사드립니다.... 꾸벅
오 좋은 질문답변 입니다~ 저도 생각하던건데, 이렇게 정보를 얻게 되었습니다. ^^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-10-18 조회 1,590
11-10-18 조회 1,122
11-10-18 조회 1,602
11-10-18 조회 1,035
11-10-18 조회 897
11-10-18 조회 817
11-10-18 조회 863
11-10-18 조회 1,018
11-10-18 조회 1,166
11-10-18 조회 1,608
11-10-18 조회 1,574
11-10-18 조회 1,491
11-10-18 조회 921
11-10-18 조회 4,676
11-10-18 조회 2,097
11-10-18 조회 1,697
11-10-17 조회 3,360
11-10-17 조회 883
11-10-17 조회 1,694
11-10-17 조회 928