Confermo! mi è venuto. in PAGINA2 mi è bastato $arr = $_POST['arr'];Concludendo, per spedire un array in post è necessario ciclare sull'array in PAGINA1:
e in PAGINA2 il PHP ricostruirà "arr" come vettore e lo resituirà in $_POST['arr'] (ed è l'unica cosa che fa il PHP in automatico).Codice PHP:
foreach ($arr as $key => $value) {
echo "<input type='hidden' name='arr[$key]' value='$value' />";
}
Grazie! Gentilissimo!![]()