- form - 사용자가 입력한 정보를 서버로 전송하는 방법.
- get, post 방식
- 웹에플리케이션 개발 흐름 확인
- 로그인 기능 만들기(서버 전송 시 정보를 처리하는 방법)
<heml>
<head>
<meta charset="utf-8"
</head>
<body>
<form action="http://localhost/method.php">
<input type="text" name="id">
<input type="password" name="pwd">
<input type="submit">
</form>
</body>
</heml>
> http://localhost/method.php?id=egoing&pwd=1111
- 정보 노출되어 post 방식으로 진행.
- 메소드 지정하지 않으면 기본적으로 get 방식
<heml>
<head>
<meta charset="utf-8"
</head>
<body>
<form action="http://localhost/method.php" method="post">
<input type="text" name="id">
<input type="password" name="pwd">
<input type="submit">
</form>
</body>
</heml>
> http://localhost/method.php ( 노출 x)
- form 방식 진행 시 서버 엔지니어의 몫. (get, post 지정)