tags: apache   archive   business   charity   climbing   comic   communication   database   email   exchange   family   fm2008   hack   hardware   humour   linux   liverpool   microsoft   money   mysql   network   oes   opensource   outlook   php   pictures   process   project   quote   real_life   review   rss   science   security   software   thought   tsm   updates   webdev   website   windows  

POST and GET

Tue, 11 Sep 2007 03:06:00
Difference between POST and GET

When creating a webpage you can pass data between your pages. I'd like to introduce you to two common methods and their main difference.

POST

  • Data passed is invisible to the end user
  • When the user refreshes the page (F5) they will get a warning

GET

  • Data is passed to the URL in your address bar, and then future quires pull this data from the URL.
  • No warnings when you refresh your page

I prefer passing the data using GET, as I do with pages on this site and use apache to make the URLS look pretty, rather than an ugly query in the address bar. Google "php create friendly URLS" if you want more information on this

Cheers
Ryan Partington