Difference Between Get and Post in Tabular Form

Sno.Basic TermGet Post
1.DefinitionRequests data from a specified resourceSubmits data to be processed to a specified resource.
2.Variables in Php$_GET$_POST
3.Data length2048 charactersNo Limit
4.SecurityLess Security Urls saved in browser history and
server logs in plaintext.
More Secure No saved in browser history and server logs in plaintext.
5.Displayed in UrlYesNo.
6.BookmarkedYesNo.
7.HistoryYes Saved in historyNo.
8.Encoding Type(enctype attribute)application/x-www-form-urlencodedapplication/x-www-form-urlencoded or

multipart/form-data

9.Url Examplehttp://www.example.com/action.php?name=Abhi&age=22http://www.example.com/action.php
10.CachedcachedNever
11.Send Sensitive DataNoYes
12.BACK button/ReloadSame Link is Reload and Then ProcessBefore Reload browser should alert about the re-submitted data
13.Data TypeOnly ASCII characters allowed and non ASCII
characters are Not Alow like (©, ®,™)etc
No restrictions. Binary data is also allowed
14.Using Used with Action

  • Insert
  • Delete
  • Edit
POST method used with.

  • sensitive information
  • passwords
15.Form Submission In Php Example
 

 
(Visited 26 times, 1 visits today)

Written by: