FORM 태그에서 사용할 수 있는 METHOD에는

GET Method와 POST Method가 있다.

GET Method는 URL에 FORM 태그 내의 정보를 포함시키는 방식이고,

POST Method는 HTTP Body 안에 포함시키는 방식이다.

GET Method는 얼핏봐도 좋아 보이지 않는다.

왜냐하면, 암호와 같이 민감한 데이터에 사용할 수 없을 뿐더러,

100 글자라는 길이 제한까지 있어 불편하다.

그렇다면, 왜 GET Method가 존재하는 것일까?

GET Method를 사용하면 해당 페이지를 Bookmark할 수 있기 때문이다.

다음을 참고하기 바란다.



Note: When using the $_GET variable all variable names and values are displayed in the URL. So this method should not be used when sending passwords or other sensitive information! However, because the variables are displayed in the URL, it is possible to bookmark the page. This can be useful in some cases.

Note: The HTTP GET method is not suitable on large variable values; the value cannot exceed 100 characters.



Reference:
http://www.w3schools.com/php/php_get.asp

Posted by 알 수 없는 사용자
,