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

· 10년 전 · 1110

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,536
10년 전 조회 1,337
10년 전 조회 1,310
10년 전 조회 1,382
10년 전 조회 1,661
10년 전 조회 1,188
10년 전 조회 1,853
10년 전 조회 1,181
10년 전 조회 1,362
10년 전 조회 1,241
10년 전 조회 1,325
10년 전 조회 1,066
10년 전 조회 1,084
10년 전 조회 1,327
10년 전 조회 1,111
10년 전 조회 961
10년 전 조회 1,017
10년 전 조회 979
10년 전 조회 1,029
10년 전 조회 938
10년 전 조회 1,336
10년 전 조회 861
10년 전 조회 1,438
10년 전 조회 1,490
10년 전 조회 1,034
10년 전 조회 1,069
10년 전 조회 917
10년 전 조회 1,094
10년 전 조회 809
10년 전 조회 998