GET 인지 POST 인지 알아내기
<?
if($_SERVER[REQUEST_METHOD]!='POST') {
?>
<script>
alert("잘못된 접근방식입니다.");
history.back();
</script>
<?}?>
}?> \r\n\r\n[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]","url":"https://sir.kr/boards/pb_tip/1085","author":{"@type":"Person","name":"WebRIA","url":"https://sir.kr/profile/8e1286d0-176b-46cb-84e2-07d13d2380e5"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"datePublished":"2010-01-19T21:19:11+09:00","dateModified":"2010-01-19T21:19:11+09:00","comment":[{"@type":"Comment","text":"유용한 정보 감사드립니다^^","author":{"@type":"Person","name":"막장코더"},"datePublished":"2010-02-10T09:49:58+09:00"},{"@type":"Comment","text":"굿~ 이런게 있는줄 몰랐네..^^","author":{"@type":"Person","name":"intel"},"datePublished":"2010-04-17T22:19:23+09:00"}]}
<?
if($_SERVER[REQUEST_METHOD]!='POST') {
?>
<script>
alert("잘못된 접근방식입니다.");
history.back();
</script>
<?}?>
댓글 2개