테스트 사이트 - 개발 중인 베타 버전입니다

폼전송을 통해서 페이지를 이동하기 입니다.

· 9년 전 · 877

function location_href( $url, $msg="" )
{
 global $g4;

 $array_url = parse_url($url);
 $formname = "form" . time();
 $query = explode("&", $array_url[query]);

 echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";

 echo "<form id='$formname' method='get' action='$array_url[path]'>";

 foreach ( $query as $key => $val )
 {
  list( $key2, $val2 ) = explode("=", $val);
  echo "<input type=hidden name=$key2 value='$val2'>";
 }

 echo "</form>";

 echo "<script language='javascript'>";
 if ( $msg )
  echo "alert(\"$msg\");";
 echo "document.getElementById('$formname').submit();";
 echo "</script>";

 exit;
}
 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
18013
18012
18011
18010
18009
18008
18007
18006
18005
18004
18003
18002
18001
18000
17999
17998
17997
17996
17995
17994
17993
17992
17991
17990
17989
17988
17987
17986
17985
17984