소

메인페이지 접속할때 쪽지 안내 창 있쟎아요..

메인페이지 접속하면 head.sub.php에서 쪽지 확인 하고 경고창 보여주쟎아요..

// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");

alert("관리자로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}


요기요... 이 소스를 confirm 확인창으로 하여 [확인] [취소]로 경고창을 보여줘서 확인을 누르면 특정페이지로 갈 수 잇도록 하려면 어케해야하나요?

감사합니다.

댓글 3개

[code]
// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");
echo "
<script type='text/javascript'>
if (confirm('쪽지가 전달되었습니다. 확인하시겠습니까?'))
document.location.href = '이동할 파일';
else
return;
</script>";
}
[/code]
메인페이지 접속할때 쪽지 안내 창 있쟎아요..
감사합니다.

하지만
오류페이지가 뜨면서 함수 밖의 return문장이라고 그러네요.

오류메세지입니다.

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/wnkm1/www/head.sub.php:20) in /home/hosting_users/cxcx/www/head.sub.php on line 43
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-11-04 조회 1,696
10-11-04 조회 1,099
10-11-04 조회 1,683
10-11-04 조회 1,076
10-11-04 조회 4,804
10-11-04 조회 1,894
10-11-04 조회 1,071
10-11-04 조회 1,083
10-11-04 조회 1,401
10-11-04 조회 1,150
10-11-03 조회 1,644
10-11-03 조회 1,115
10-11-03 조회 1,765
10-11-03 조회 1,137
10-11-03 조회 1,634
10-11-03 조회 1,220
10-11-03 조회 1,690
10-11-03 조회 915
10-11-03 조회 3,805
10-11-03 조회 1,672