Thread: GET vs POST

    #1
  1. No Profile Picture
    riddler
    Guest
    Devshed Newbie (0 - 499 posts)
    Riddle me this:

    When should I use GET and when should I use POST in my forms? I'm using PHP to perform my database reading/writing. Until now, I've just used POST, but I'd like to understand better what the advantages and disadvantages are for each method.

    I'm going to go sign up for the PHP mailing list at
    http://www.topica.com/lists/php
    and post the same question there, so I apologize to anyone who ends up reading this twice.

    Thanks,

    --Riddler
  2. #2
  3. No Profile Picture
    thelem
    Guest
    Devshed Newbie (0 - 499 posts)
    If you use GET then the url of the output page will end ?field1=value1&field2=value2 and so on. POST does not have this.

    Basically you use GET when you want people to be able to edit what they have put in the form without returning to the page, or to be able to bookmark that page, and you use POST to make the URL look neat and stop people from bookmarking the url.

    Lemming
    www.lemnet.com
  4. #3
  5. No Profile Picture
    larrys
    Guest
    Devshed Newbie (0 - 499 posts)
    Get is also much more limited in the number of characters you can use. I don't remember the exact number but Post is used when you have a large number of charactors to pass.

Similar Threads

  1. post preview with regex
    By Hall in forum PHP Development
    Replies: 0
    Last Post: February 11th, 2004, 04:51 AM
  2. Query help
    By phprock in forum MySQL Help
    Replies: 9
    Last Post: February 8th, 2004, 04:59 AM
  3. Replies: 8
    Last Post: February 8th, 2004, 12:04 AM
  4. OCing 2800+, won't post
    By BurnZ in forum CPUs
    Replies: 1
    Last Post: January 23rd, 2004, 09:18 AM
  5. Simulated POST is making me bald
    By liberate in forum PHP Development
    Replies: 0
    Last Post: January 11th, 2004, 11:18 PM

IMN logo majestic logo threadwatch logo seochat tools logo