I am looking to use an array on 2 seperate pages of php. Not using Sessions a simple array, at the end of my page I use a Submit button to pass on to the 2nd page... how can I save the content of my array and print them on the 2nd page?
Asked
Active
Viewed 48 times
2 Answers
0
You have to use encoded json(json_encode($array);) format inside the form after submit you have to retrieve the data by json_decode($array,true);

Ajit Kumar
- 345
- 3
- 9
0
You can use cookies to save list of array and fetch on the other page. Arrays in cookies. And if you don't need to use that data again you can delete the cookie