I have a php file that needs to redirect to another, but I need to pass an array to the second file. How can I do this.
I know this is wrong, but I need something l
If you don't want to expose your $array, you MUST use PHP inbuild session support.
session_start(); // DO CALL ON TOP OF BOTH PAGES $_SESSION['array'] = $array; echo $_SESSION['array']; // GIVES SAME $array FOR BOTH PAGES