HTTP Method로는 GET방식과 POST방식이 있습니다. 오늘은 그 두가지의 특징과 차이점에 대해 알아보겠습니다.
<html>
<body>
<form method="GET" action="getpost.php">
id : <input type="text" name="id">
pw : <input type="password" name="pw">
<input type="submit">
</form>
</body>
</html>
<?php
echo $_GET['id'].",".$_GET["pw"];
?>
<html>
<body>
<form method="POST" action="getpost.php">
id : <input type="text" name="id">
pw : <input type="password" name="pw">
<input type="submit">
</form>
</body>
</html>
<?php
echo $_POST['id'].",".$_POST["pw"];
?>
https://hongsii.github.io/2017/08/02/what-is-the-difference-get-and-post/