Syd Mahdi
0
Q:

access http get params php

<form action="/" method="get">
  <input type="text" name="name">
  <br>
  <input type="submit">
</form>
<?php
  echo $_GET["query"];
?>
19
<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);
?>
4
<?php 
  
// Inintialize URL to the variable 
$url = 'http://www.geeksforgeeks.org/register?name=Amit&[email protected]'; 
      
// 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']; 
  
?> 
0

New to Communities?

Join the community