salve amici
vi spiego subito il problema:
<form action="3_2.php" method="post">
<?php
$fp = fopen("upload/prova.txt","r");
if ($fp)
{
$i=0;
while (!feof($fp))
{
$riga=fgets($fp,4096);
echo "$riga
";
$array[$i]=split("[\t]",$riga);
$i++;
}
fclose($fp);
}
else echo "file non trovato";
echo "<input type='hidden' value='$array' name='array'>";
?>
<input type="submit">
</form>
questo è il file ke crea l'array e lo passa a 3_2.php.
a questo punto come faccio a scorrere quest'array?
Ho provato in questo modo ma inutiule dire ke non funziona:
for($i=0;$i<count($_POST["array"]);$i++)
for ($j=0;$j<count($_POST["array"][$i]);$j++)
echo "
".$_POST["array"][$i][$j];
Grazie per l'aiuto.