채택완료

페이지 이동 스크립트 질문좀요..

2014-08-01 (금) 13:55:00 5,118

<?php

header("Pragma: no-cache");  

header("Cache-Control: no-cache,must-reval!idate");  

header("Expires: 0");

@extract($_GET);

require("./admin/classes/DB.class.php");

$db = new DB($listCount, $pageCount, $listquery, $countquery, $page);

$query = $db->_query("select keyword from domain where domain = '{$_SERVER["HTTP_HOST"]}'");

$fetch = $db->_fetch($query);

}

 ?>

<head> 

  <TITLE><?php echo $fetch->keyword;?></TITLE>

  </HEAD>

 <body>

<script language="javascript">

top.frames.location.href="http://test.co.kr/?s_key=<?php echo $fetch->keyword;?>";

</script>

 </BODY>

</HTML>

 </body>

 </html>

현재 이렇게 소스를 사용하고있는데..

페이지가 안넘어가지네요 ㅠㅠ..

뭐가문제일까요 ㅠㅠ...

|

답변 4개

채택된 답변
+20 포인트

top.frames['프레임명'].location.href = "http://test.co.kr/?s_key=<?php echo $fetch->keyword;?>​";​

2014-08-01 (금) 15:34:11

http://test.co.kr/?s_key= 에서 http://test.co.kr?s_key 이렇게 /을 배주어야 합니다 

2014-08-01 (금) 14:08:49

top.frames.location.href

꼭 이걸 사용해야 하거든용 ㅠㅠ...​

방법없을까요??

<script language="javascript">

top.location.href​="http://test.co.kr/?s_key=<?php echo $fetch->keyword;?>";

</script> 

답변을 작성하려면 로그인이 필요합니다.