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

· 10년 전 · 1062

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;
}
 

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

토크

개발과 관련된 어떤 얘기도 괜찮습니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 1,502
10년 전 조회 1,294
10년 전 조회 1,272
10년 전 조회 1,347
10년 전 조회 1,622
10년 전 조회 1,158
10년 전 조회 1,823
10년 전 조회 1,140
10년 전 조회 1,329
10년 전 조회 1,211
10년 전 조회 1,285
10년 전 조회 1,027
10년 전 조회 1,033
10년 전 조회 1,278
10년 전 조회 1,063
10년 전 조회 920
10년 전 조회 981
10년 전 조회 947
10년 전 조회 993
10년 전 조회 901
10년 전 조회 1,297
10년 전 조회 828
10년 전 조회 1,412
10년 전 조회 1,453
10년 전 조회 1,000
10년 전 조회 1,040
10년 전 조회 887
10년 전 조회 1,055
10년 전 조회 776
10년 전 조회 966