Advertisement

Responsive Advertisement

PHP Post Method

 


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.
  • A good example of using post method is when submitting login details to the server.

It has the following syntax.

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

HERE,

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

Post a Comment

0 Comments