$_REQUEST variable

$_REQUEST is a predefined variables in php. which variable you can able to use get the data to GET an POST method from the form.

The following example POST Method used to get Name , Age for REQUEST Variables


$_ REQUEST["variable_name"]

$_REQUEST variable Example :

<form action="tutorialsscripts.php" method="POST">
Name: <input type="text" name="Name" />
Age: <input type="text" name="Age" />
<input type="submit" />

Retrieve a Request Value.

Here Name, Age get through REQUEST variables.

echo "Firstname:" $_REQUEST["Name"]; . <br />;
echo "Lastname:" $_REQUEST["Age"];