This type of URL is only visible if we use the GET action, the POST action hides the information in the URL.
Server Side(PHP): On the server side PHP page, we request for the data submitted by the form and display the result.
Method 2: Using Cookies to store information:
Client Side: Use Cookie to store the information, which is then requested in the PHP page. A cookie named gfg is created in the code below and the value GeeksforGeeks is stored. While creating a cookie, an expire time should also be specified, which is 10 days for this case.
Server Side(PHP): On the server side, we request for the cookie by specifying the name gfg and extract the data to display it on the screen.
- How to pass PHP Variables by reference ?
- Perl | Pass By Reference
- How to pass integer by reference in Java
- CSS | Variables
- PHP | Variables
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.