- header()를 이용하는 법
[code]<?
$target-url = "target-url";
header( "location:" . $target-url );
?>[/code]
- javascrip를 이용하는 법
[code]<?
$target-url = "target-url";
?>
<script> location.href='<?=$target-url?>'; </script>[/code]
또는
[code]<?
$target-url = "target-url";
?>
<script> location.replace( '<?=$target-url?>' ); </script>[/code]
- META 태그를 이용하는 법
[code]<?
$target-url="target-url";
?>
<meta http-equiv = 'refresh' content = '0; url = <?=$target-url?>' />[/code]
Posted by 호아범
트랙백 주소 :: http://www.crazybar.net/trackback/221
댓글을 달아 주세요