i tried to pass an array trought pages, and the only solutions i get (not mutch time to think) was passing the values as parameters.
I think, and hope, there are a better and cleaner way to do it, and my question to you all is ...HOW?
$myrec[number] = field from a table;
$arrystr = my array, in this case only 4 rows;
$nor_arrystr = number of rows of the array; // 4
Code: Select all
<?
(...)
echo ($novotit."<a href = "nextpage.php?$numnot=$myrecїnumber]"); forech($arrystr as $k =>$n)
{
echo("&val$k=$n");
}
echo("&tot=".$nor_arrystr."">ver</a>");
(...)
?>Code: Select all
<?
$array_loc = array();
$nor_array = $_GETї'tot'];
for($i = 0; $ <= $nor_array; $i++)
{
array_push($array_loc, $_GETї'val'.$i]);
}
?>