PHP $_REQUEST Variable

PHP $_REQUEST variable contains the contents of both $_GET, $_POST, and $_COOKIE.

 PHP $_REQUEST variable can be used to get the result from form data sent with both the GET and POST methods.

Example


Welcome <?php echo $_REQUEST["name"]; ?>.<br />
You are <?php echo $_REQUEST["age"]; ?> years old!

No comments:

Post a Comment