메인페이지 접속하면 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 확인창으로 하여 [확인] [취소]로 경고창을 보여줘서 확인을 누르면 특정페이지로 갈 수 잇도록 하려면 어케해야하나요?
감사합니다.
// 쪽지를 받았나?
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]
// 쪽지를 받았나?
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
하지만
오류페이지가 뜨면서 함수 밖의 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
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기