Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    post , get method in form

    hi all
    I'm confused what's the differnce between get method and post method in <form> tag , when to use which one ?
    thanks

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #3
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).

  • #4
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well I want to be exact:

    http://www.w3.org/Protocols/rfc2616/...c9.html#sec9.3 for GET
    and
    http://www.w3.org/Protocols/rfc2616/...c9.html#sec9.5 for POST

    Kind of confusing isn't it.
    CATdude about IE6: "All your box-model are belong to us"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •