게시글에 답변을 단 후, 리스트 페이지로 이동이 되지 않습니다.
본문
관리자 페이지에서 올라온 글에 답변을 달고, 버튼을 누르면
해당 OPTION태그의 값을 [접수중]에서 [답변완료]로 변경시키려고 합니다.
이런 경우 write_update.skin.php에서
alert("메시지"); 이런 식으로 되면, 메시지 출력후 뒤로 가기 입니다. 라고 도움을 얻어서
if ($g4[https_url])
$https_url = "$g4[url]/$g4[bbs]";
else
$https_url = ".";
alert("답변이 완료되었습니다.", "{$https_url}/board.php?bo_table=$bo_table");
이렇게 write_update.skin.php에서 사용을 했는데
메시지만 뜨고, 정작 리스트 페이지로 이동은 되지 않는 현상이 발생됩니다.
무엇때문에 페이지 이동이 되지 않는 건지 다른 분들의 조언 부탁드립니다.
//write_update.skin.php
if ($g4[https_url])
$https_url = "$g4[url]/$g4[bbs]";
else
$https_url = ".";
alert("답변이 완료되었습니다.", "{$https_url}/board.php?bo_table=$bo_table");
$sql = " update $write_table set ca_name = '답변완료'
$sql_password
where wr_id = '$wr[wr_id]' ";
sql_query($sql);
답변 2
//write_update.skin.php
if ($g4[https_url])
$https_url = "$g4[url]/$g4[bbs]";
else
$https_url = ".";
$sql = " update $write_table set ca_name = '답변완료'
$sql_password
where wr_id = '$wr[wr_id]' ";
sql_query($sql);
alert("답변이 완료되었습니다.", $https_url."/board.php?bo_table=$bo_table");
이렇게 한번 해보세요
!-->
alert() 말고
alert_go()로 해보세요
답변을 작성하시기 전에 로그인 해주세요.