Interview Questions

How many ways we can pass the variable through the navigation between the pages?

PHP Interview Questions and Answers


(Continued from previous question...)

How many ways we can pass the variable through the navigation between the pages?

At least 3 ways:

1. Put the variable into session in the first page, and get it back from session in the next page.
2. Put the variable into cookie in the first page, and get it back from the cookie in the next page.
3. Put the variable into a hidden form field, and get it back from the form in the next page.

(Continued on next question...)

Other Interview Questions