Page 1 of 1

Arrays and Sessions

Posted: Thu Oct 14, 2004 6:27 pm
by dougp23
Just a couple questions!

Can I assign an array to a SESSION variable? I build an array in a script, but then move to a new script. Can I carry that array with me?

How do I move to the next record in the array? My array is called $kids (brought over in $_SESSION['kids'])

How do I tell PHP to load a new page? How do I tell PHP to reload the EXISTING page?

Much thanks!

Posted: Thu Oct 14, 2004 6:52 pm
by kettle_drum
Why dont you try and add an array to a session and see what happens?

You can use header() to refresh the current page or redirect to another page.

Posted: Thu Oct 14, 2004 7:13 pm
by mudkicker
next($_SESSION['kids']) work to get to next member of array.