$_GET in PHP

What is $_GET in PHP

$_GET in PHP is used to pass variables like $_REQUEST . If we submitting an HTML form with method=\”get\”.$_GET is  used to collect form data.

When a user submits the data by clicking on \”Submit\”, the form data is sent to the file specified in the action attribute of the <form> tag. Then, we can use the super global variable $_GET to collect the value of the input field.$_GET is very useful variable because it retrieves the value from HTML form only when HTML Form method is get .It also useful when we have to submit data thru query string .

  
Syntax : $variable = $_GET [\'html input name\']; 
Scroll to Top