PHP Example HTML Javascript jQuery Ajax CSS Java MORE

PHP Superglobal variable with example

In PHP there is 9 Superglobals variable available these are:

  1. $GLOBALS
  2. $_SERVER
  3. $_REQUEST
  4. $_POST
  5. $_GET
  6. $_FILES
  7. $_ENV
  8. $_COOKIE
  9. $_SESSION

$_REQUEST

In PHP $_REQUEST is used to collect form data.

$_SERVER

$_SERVER is an super globalvariable containing information such as headers, paths, and script locations.

$_GET

In PHP $_GET is used to collect form data.

In GET you send information to server in two way :

  1. Through URL
  2. Through from

$_POST

In PHP $_POST is used to collect form data.

In POST you send information to server in one way that is


Warning: mysqli_connect(): (HY000/1040): Too many connections in /www/wwwroot/studentstutorial.com/demo/conn/conn.php on line 15
Could not Connect My Sql:Too many connections