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

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

· 9년 전 · 876

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

댓글 작성

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

로그인하기

게시글 목록

번호 제목
18354
18351
18349
18347
18343
18339
18336
18334
18331
18328
18323
18317
18316
18314
18313
18309
18307
18304
18302
18300
18299
18298
18293
18290
18284
18279
18278
18277
18273
18272