[Tableaux] transmettre tableau php get (serialize / unserialize)
Bonjour,
Je cherche a trabsmettre un tableau en get...
Voivi mon code:
Code:
1 2 3 4 5 6
|
print_r($tab_cb);
$tab_cb=serialize($tab_cb);
echo "<script type=\"text/JavaScript\">";
echo "MM_openBrWindow('liste.php?tab_cb=$tab_cb','','scrollbars=yes,resizable=yes,width=650,height=700')";
echo "</script>"; |
Le code de liste.php
Code:
1 2 3
|
$tab_cb=unserialize($tab_cb);
print_r($tab_cb); |
Le probleme, c'est que unserialize ne reconstruis pas mon tableau...
Voici mon tableau avant serialize (1er print_r) :
Citation:
Array ( [0] => 112261 [1] => 112260 [2] => 112259 [3] => 112257 )
Rt le voici apres le unserialize (2nd print_r) :
Citation:
a:4:{i:0;s:6:\"112261\";i:1;s:6:\"112260\";i:2;s:6:\"112259\";i:3;s:6:\"112257\";}
Quel est le problème?