나를 찾아가는 여행

나다움을 찾아가는 여정, 다가치사람다운 세상을 만들어가요

자기개발/빅데이터_R과 파이썬

Html "get" vs "post"

안박 2022. 11. 3. 19:12

연습창

https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_get 

 

W3Schools online HTML editor

The W3Schools online code editor allows you to edit code and view the result in your browser

www.w3schools.com

<!DOCTYPE html>
<html>
<body>

<h2>The method Attribute</h2>

<p>This form will be submitted using the GET method:</p>

<form action="/action_page.php" target="_blank" method="get">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form>

<p>After you submit, notice that the form values is visible in the address bar of the new browser tab.</p>

</body>
</html>

노출되어 버림

 

 

<!DOCTYPE html>
<html>
<body>

<h2>The method Attribute</h2>

<p>This form will be submitted using the GET method:</p>

<form action="/action_page.php" target="_blank" method="post">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname" value="John"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  <input type="submit" value="Submit">
</form>

<p>After you submit, notice that the form values is visible in the address bar of the new browser tab.</p>

</body>
</html>

post를 사용하면 보완됨

 

'자기개발 > 빅데이터_R과 파이썬' 카테고리의 다른 글

CSS활용하기(1) li  (1) 2022.11.03
Html의 Form , 폼 양식  (0) 2022.11.03
Html의 Table 작성하기  (0) 2022.11.01
html target 활용 새 창 만들어 열기  (0) 2022.11.01
HTML 개요  (0) 2022.10.04