Posts

Showing posts from April, 2017

PHP Superglobals

Superglobals are variable that are automatically available throughout all program code,in all scopes. These variables require no declaration they can simply be accessed. Super global variables provide: Useful information about the environment Allow access to HTML form  variables or parimeters Access to cookies stored on a client Keeping track of sessions and file uploads   They are as follows: $_GET  - $_GET is used for data passed using the HTTP GET method,which includes variables passed as part of the URL. For Example: www.designevlop.blogspot.com/index.php?book=PHP&cat=linux                                                                                                                                                                                 The GET method is conventionally used when the processing script has no lasting observable effect,such as changing  a value in a database table. $_GET has been around since PHP 4.1.0 Before that,$HTTP_GET_VARS was used t