$_request in php – $_POST, $_GET,$_POST, and $_REQUEST Examples

$_request in php : PHP $_REQUEST is a super global variable. Like as a PHP : $_REQUEST, $_POST, $_GET – PHP. The PHP $_REQUEST Variable is used to read the data from the submitted HTML form.

$_request in php

$_request in php will stay the same but the method in the form will change to you preference from GET or POST.

The $_REQUEST variable

";
print_r($_REQUEST);
echo "

“;

?>

Syntax of $_REQUEST function

$_REQUEST[“element name”];

don’t Miss : jQuery ajax POST example

Example of PHP: $_REQUEST

It’s used to collect data after submitting html forms – Example of $_REQUEST function in PHP.
index.html



Php contact form


   
* Member Name:
* Primary Email:
Location:
Mobile No:
        Comment:
A * indicates a field is required

do_action.php

";
print_r($_REQUEST);
echo "

“;

$name=$_REQUEST[‘name’];
echo $name;
?>

don’t Miss :

Full Example – $_request in php

";
      echo "You are ". $_REQUEST['member_age']. " years old.";
      exit();
   }
?>

   
      
      
Name: Age:

don’t Miss : jQuery ajax GET example with parameters

I hope you get an idea about $_request in php.
I would like to have feedback on my infinityknow.com.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment