Page 1 of 1

giving the total array to another page

Posted: Sun Oct 24, 2004 4:41 am
by emartens
I've got a question;

I've declared an array in one page and want to give the total array to another page f.e.

$table=array()
<A target=\"popup\" href=\"popup.php?table=$table;

But when i check $table in the popup.php it's value is "array"

Can this be done?


Posted: Sun Oct 24, 2004 5:39 am
by kettle_drum
Sure it can. Before placing it in the url implode() it so that it becomes a single string and then use that value in the url - and then explode() it on the new page.

Posted: Sun Oct 24, 2004 8:29 am
by John Cartwright
You can also share arrays in a $_SESSION variable.