Thanks superwormy, I appreciate your help. I just do not have a clue why I cannot unserialise this array after it has been serialised.
I have now been trying just about every other possibility I can find, but none yet have worked. Here is an example code (the page can be viewed here) showing an example of how I would want my actual array to appear, and then a list of results showing all the values of the array (purely experimental). There is no need to post all my script, so here is the part where I define the array:
$array_full_of_values_to_store = array (
"rate1" => "voted",
"rate2" => "voted",
"rate3" => "voted",
"rate5" => "voted",
);
And I also have tried to use implode() to turn this array into a string. Here is that peice of code:
$test = $array_full_of_values_to_store;
$string_to_pass = "test[]=" . implode("&test[]=", $test);
Then, on a different page, I use this explode() function to try and rebuild the same array:
$thearray = explode("&", $thecookie);
The output of this can be seen here. This method seems to keep the values of the array (I know this as 'voted' appears where I have echoed the imploded string), but it drops the keys that call these values (rate1, rate2 etc....). Because of this, the results where I have shown all of the new array say that there have been no votes on anything. Is there a way to implode the array, pass it as a string, then explode it and recover the exact same array on a different page?
By the way, if you think it will help to view the full source for these two pages, you can find it here:
http://www.retina-fx.com/1.txt
http://www.retina-fx.com/4.txt
I would really appreciate any help on either this method, or the serialise method that I had previously tried. Thanks!