PHP Interview Questions
Differences between POST and GET methods?
PHP POST method :

This is the built in PHP super global array variable that is used to get values submitted via HTTP POST method.
The array variable can be accessed from any script in the program; it has a global scope.
This method is ideal when you do not want to display the form post values in the URL.
 
Syntax :
<?php
 $_POST['variable_name'];
?>
 
 
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.
 
Syntax :
<?php
$_GET['variable_name'];
?>