Advertisement

Responsive Advertisement

PHP Get Method


 

PHP GET method

  • This is the built in PHP super global array variable that is used to get values submitted via HTTP GET method.
  • The array variable can be accessed from any script in the program; it has a global scope.
  • This method displays the form values in the URL.
  • It’s ideal for search engine forms as it allows the users to book mark the results.

It has the following syntax.

<?php
$_GET['variable_name'];
?>

HERE,

  • “$_GET[…]” is the PHP array
  • “’variable_name’” is the URL variable name.

Post a Comment

0 Comments