39 users online (1 members and 38 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 2
  2. NOT EQUAL methods??    Forum: Javascript Forum
    Replies: 2
  1. #1
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: GET and POST methods

    The difference is on the form of dataa encoding.

    When you use GET method, data will be visible on the URL, while POST method doesn't. Also, GET is less secure and has a limit of 256 chars, while PoST is secure and transfers unlimited data.

    For further reading:
    http://www.cs.tut.fi/~jkorpela/forms/methods.html
    http://www.w3schools.com/PHP/php_get.asp
    http://www.w3schools.com/PHP/php_post.asp

    Hope that helps.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: GET and POST methods

    This is correct.
    Quote Originally Posted by rangana View Post
    The difference is on the form of dataa encoding.

    When you use GET method, data will be visible on the URL, while POST method doesn't. Also, GET is less secure [...], while PoST is secure and transfers unlimited data.

    For further reading:
    http://www.cs.tut.fi/~jkorpela/forms/methods.html
    http://www.w3schools.com/PHP/php_get.asp
    http://www.w3schools.com/PHP/php_post.asp

    Hope that helps.
    The closest I have been able to find with a definitive declaration on the length allowed for name/value pairs in the $_GET value is this article from Microsoft. What I gather from this and from other sources I have read is that the allowed length for the $_GET value is determined by the browser and server.

    This article lists the results of tests one person p[erformed using various browser/server combinations.

    My advice is that if you are sending only a couple values (I recommend no more than 4), and none of the values need to be secure (i.e. passwords), feel free to use the GET method. However, much more than that, switch to POST.

  3. #3
    gatsmark01's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2009
    Posts
    6

    Re: GET and POST methods

    Hi Dude...

    Get method is used to read the data.

    Post method is used to write the data.

  4. #4
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: GET and POST methods

    Quote Originally Posted by gatsmark01 View Post
    Hi Dude...

    Get method is used to read the data.

    Post method is used to write the data.
    That's not true. GET and POST are methods on passing data.

    Both of them passes data to server, the difference is on the way the data is being passed.

    POST passes the "posted" data into an associative array called "$_POST", while GET passes the data via URL.

    Hope that makes sense.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.



Tags for this Thread