I have an array in page 1 such as this:
$myArray[0] =1;
$myArray[1] = 2;
etc etc....
I want to pass this array through the url into page 2:
header("Location: ".myURLAndDir()."invited.php"."?type=massmail"."&thisArray=".$myArray);
Is this the correct syntax for passing the array?
What is the syntax for passing an array through the url?
Moderator: General Moderators
Code: Select all
$URLArray = base64_encode(serialize($Array)); // write
$Array = unserialize(base64_decode($_GET['Array'])); //readThere are 10 types of people in this world, those who understand binary and those who don't