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

· 9년 전 · 923

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

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

토크

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

+
제목 글쓴이 날짜 조회
9년 전 조회 1,384
9년 전 조회 1,181
9년 전 조회 1,163
9년 전 조회 1,223
9년 전 조회 1,490
9년 전 조회 1,044
9년 전 조회 1,701
9년 전 조회 1,026
9년 전 조회 1,224
9년 전 조회 1,077
9년 전 조회 1,182
9년 전 조회 897
9년 전 조회 904
9년 전 조회 1,154
9년 전 조회 924
9년 전 조회 806
9년 전 조회 855
9년 전 조회 824
9년 전 조회 868
9년 전 조회 782
9년 전 조회 1,164
9년 전 조회 715
9년 전 조회 1,295
9년 전 조회 1,328
9년 전 조회 871
9년 전 조회 934
9년 전 조회 766
9년 전 조회 935
9년 전 조회 666
9년 전 조회 847
🐛 버그신고