Php get and post method?

4 replies
  • WEB DESIGN
  • |
What is the difference between GET and POST methods in form submitting? Give the cases where we can use GET and POST methods?
#method #php #post
  • Profile picture of the author Abhishek Kundu
    hi jacobsmith,

    As per functionality both GET and POST methods are similar. The difference is GET method will be showing the information information to the users.But in the case of POST method information will not be shown to the user.

    The data passed using the GET method would be visible to the user of the website in the browser address bar but when we pass the information using the POST method the data is not visible to the user directly.

    Also in GET method characters were restricted only to 256 characters.But in the case of POST method characters were not restricted.
    Get method will be visible to the user as it sender appended to the URL, put Post will not be visible as it is sent encapsulated within the HTTP request body.


    About the data type that can be send, with Get method you can only use text as it sent as a string appended with the URL, but with post is can text or binary.


    About form default, Get is the default method for any form, if you need to use the post method, you have to change the value of the attribute "method" to be Post.


    Get method has maximum length restricted to 256 characters as it is sent appended with the URL, but the Post method hasn't.

    Get method has limitation in the size of data transmitted, but post method hasn't.

    hope this post well this will help you to understand the the difference between GET & POST methods.
    Signature
    CLICK HERE>>> FOLLOW ME ON TWITTER <<
    {{ DiscussionBoard.errors[4272901].message }}
  • Profile picture of the author ngseosept
    For Get method, in part of url, you can see all information there, in POST there is a privacy
    {{ DiscussionBoard.errors[4283585].message }}

Trending Topics