Jun 14, 2009 Author: Developer

PHP makes it very easy to handle data sent using either POST or GET. However, this
doesn’t mean that you should choose one or the other at random.
From a design perspective, a POST transaction indicates that you intend to modify
data (i.e.: you are sending information over to the server). A GET transaction, on
the other hand, indicates that you intend to retrieve data instead. These guidelines
are routinely ignored by most Web developers—much to the detriment of proper
programming techniques. Even from a practical perspective, however, you will have
to use POST in some circumstances; for example:
• You need your data to be transparently encoded using an arbitrary character
• You need to send a multi-part form—for example, one that contains a file
• You are sending large amounts of data

tags: GET POST

views 5067
  1. Add New Comment