PHP Global Variables
Written by admin on Monday, December 31st, 2007 in General.
PHP ( Hypertext Pre-Processor) uses variables to store information in a page. Standard variables can be called anything for example: $myvariable but PHP also has some global variables. These are variables that are declared on every PHP page and are used differently. Tthe 3 main global variables are: $_GET, $_POST and $_SESSION. All of these 3 global variables are arrays. Global variables can be used from page to page without havign to declare them again. The ones we are going to look at closely are $_GET and $_POST.