Difference between GET and POST methods in HTML

sam
sam
Member
378 Points
48 Posts

Hi,

Difference between GET and POST methods in HTML?

Views: 8663
Total Answered: 1
Total Marked As Answer: 1
Posted On: 30-Mar-2015 04:35

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Editor
1382 Points
14 Posts
         

Hi Sam,

GET:
Parameters remain in browser history because they are part of the URL
Can be bookmarked.
GET method should not be used when sending passwords or other sensitive information.

Example:

<form action="/nicepage" method="get">
<input type="submit" value="get" />
</form>

POST:
Parameters are not saved in browser history.
Can not be bookmarked.
POST method used when sending passwords or other sensitive information.

Example:

<form action="/nicepage" method="post">
<input type="submit" value="post" />
</form>

 

Posted On: 29-Mar-2015 16:32
 Log In to Chat