PHP Notes – POST vs. GET

POST and GET are not functions, they are actually variables. The Get variable will attach to the URL as: http://www.site.com/script.php?post=input_text

This is not as secure as Post, which will hide information being sent. Get will allow the user to modify input_text to change parameters of the script.

These variables are used to pass in data from a form to variables in the script. To make things easier for forms processing, they are split up into two files. One is the html file that is supposed to take input from the user. The other file is the php file and it does the “dirty work” of processing.

Related posts:

  1. Notes on PHP
  2. Linux Notes
  3. Premailer: A Script to Make All CSS Inline
  4. The Ultimate WordPress Thumbnail Hack
  5. Using CSS to Generate Footnote Links for Printing

Leave a Comment

Let us know your thoughts on this post but remember to place nicely folks!