You are on page 1of 1

<?

php
//Tutorial for how to extract all the fields of the form with name array without
fetching one //by one
//use extract
//I have used $_REQUEST array as I don't know what method was used in form it may
be either //GET or POST
//extract function automatically pulls all the name keys from the array and once
key is called
//it will print the respective values
extract($_REQUEST);
echo $fname; //suppose this is the name for the input field in form it will be
automatically captured
?>

You might also like