Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to get http parameters in php

<?php
  
// Initialize URL to the variable
$url = 'https://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'];
  
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel foreign 
Php :: how to redirect to another page after login in laravel 
Php :: Adding JavaScript to a Specific WordPress Page Using Code In Header 
Php :: how hide empty category woocommerce wordpress 
Php :: php numbers 
Php :: get site url 
Php :: laravel factory 
Php :: named route with parameter laravel 
Php :: how create migration in laravel 
Php :: taxonomy_get_parents drupal 8 
Php :: ini_set php 
Php :: php mysql insert timestamp now 
Php :: laravel make model with migration 5.8 
Php :: laravel check if email is verified 
Php :: laravel casts 
Php :: php artisan route list does not show all my routes 
Php :: add javascript to functions.php 
Php :: get google map api 
Php :: Change WordPress Login Logo Url 
Php :: php get first day of month 
Php :: laravel log query for model 
Php :: file_get_contents php 
Php :: laravel model wherein 
Php :: limit text length in php 
Php :: php str replace 
Php :: php exec get pid 
Php :: get joomla group ids 
Php :: laravel auth setup 
Php :: php laravel dump 
Php :: python to php 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =