$_REQUEST variable


This can be used to collect data with both post and get method. After submitting the HTML Form elements.


Program using $_REQUEST variable.

Example:-
Home.php
 <html>
 <body>
 <form name=“f1” method=“post” action=“call.php”>
 Enter roll<input type=“text”name=“t1”>
 Enter Name<input type=“text”name=“t2”>
 <input type=“submit”value=“submit”>
 </form>
 </body>
 </html>