PHP: Request Method :-

Techno PHP

Request($_REQUEST) can access the value of Get and post .

In the PHP $_REQUEST is a super global variable that is used collect the data after submitting HTML form .
The super global variable $_REQUEST contains the contents of both $_GET, $_POST, and $_COOKIE.

Example

<html>
<body>
<body>
<form action="" method="GET">
Name:


</form>
<?php
$res=$_REQUEST['name'];
echo $res;
?>
</body>
</html>

The $_REQUEST variable, you can use to get the result form data sent with both the GET and POST method .


Welcome !
You are years old.

Related