$_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
do_action.php
"; print_r($_REQUEST); echo "
“;
$name=$_REQUEST[‘name’];
echo $name;
?>
Full Example – $_request in php
"; echo "You are ". $_REQUEST['member_age']. " years old."; exit(); } ?>
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.