Three ways can pass the variable through the navigation between the pages: Put the variable into session in the first page, and get it back from session in the next page. Put the variable into cookie in the first page, and get it back from the cookie in the next page