08-12-2005, 12:52 AM
I'm confused what's the differnce between get method and post method in <form> tag , when to use which one ?
08-12-2005, 01:04 AM
Get method puts all your forms contents through the url. The post method sends the information 'invisably'. You can send more information through a form via post. All info sent through get will be stored in the users internet history, so never send any sensitive information via get
08-12-2005, 01:13 AM
POST is used only when sending information to the server. You should never return information from a POST request. It is to update information on the server.
GET on the other hand is only for requesting a resource (document). For instance altering the current view.
ALSO, POST can send Multimedia unprintable chars.
GET is limited to 256chars on older browsers.
Sometimes GET is so simple though, it makes it perfect. You don't need a form to utilize GET.
08-13-2005, 08:39 PM
Well I want to be exact:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3 for GET
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5 for POST
:rolleyes: Kind of confusing isn't it.