access http get params php
snippet in php

php get

user6303

<form action="/" method="get">
  <input type="text" name="name">
  <br>
  <input type="submit">
</form>
<?php
  echo $_GET["query"];
?>

php get

user9260

<form method="GET">
  <input type="text" name="someName">
  //The Name Attribute will be put into the _GET inside of php 
  <input type="submit" value="Submit">
 </form>
  
<?php
$var = $_GET("someName");
echo ($var);
?>

access http get params php

user3783

<?php 
  
// Inintialize URL to the variable 
$url = 'http://www.geeksforgeeks.org/register?name=Amit&email=amit1998@gmail.com'; 
      
// Use parse_url() function to parse the URL  
// and return an associative array which 
// contains its various components 
$url_components = parse_url($url); 
  
// Use parse_str() function to parse the 
// string passed via URL 
parse_str($url_components['query'], $params); 
      
// Display result 
echo ' Hi '.$params['name'].' your emailID is '.$params['email']; 
  
?>