Black Lives Matter. Please consider donating to Black Girls Code today.

How to restore the values of current page when user moves to the next page

I have two pages and when I perform some action on page1,a table is generated.When, I move to page2 the values in page1 are erased.How do I restore page1 values?