Publish by Sifur Rahaman March 18, 2021, 1:51 pm
Many more super global variable is available. Super global variable is a PHP building function. If you want to use this function any PHP page and collect the hidden user data like- IP Address, Browser Information etc. and insert this data in your database. Some important and most usable super global variable example is below: $_REQUEST: PHP $_REQUEST is a PHP super global variable. This variable use only collect data after submitted HTML user form. When a user fill-up all input field and click the submit button then html form active the action attribute and transfer the form data as per direction, this time use this $_REQUEST super global variable. $_POST: PHP $_POST is a PHP super global variable. This variable use only collect and display data after submitted html user form with form method = "POST". When a user fill-up all input field and click the submit button then html input field pass this field value via POST method, this time use this $_POST super global variable. Mainly $_REQUEST variable and $_POST variable working as like same. $_GET: PHP $_GET is a PHP super global variable. This variable use only collect data after submitted html user form with form method GET. GET and POST method work is same. When a user fill-up all input field and click the submit button then html input field pass this field value via GET method, this time use this $_GET super global variable.
$_REQUEST:
$_REQUEST
HTML
action
$_POST:
$_POST
method = "POST"
POST method
$_GET:
GET
GET method