Syntax: $_GET

Description:

The $_GET function is used to collect values in a form with method=”get”.

Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser’s address bar) and has limits on the amount of information to send.

This is a script. You don’t need to do a global $_GET; to access it within functions or methods.

Example:
Code:

Name: Age:

Explanation: HTML code.

Example:
Code:

 
echo $_GET["fname"]; 
echo $_GET["age"]; 

Explanation: PHP code

Output:

Warne!
40 years old.

eXTReMe Tracker