Arrays and Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dougp23
Forum Newbie
Posts: 4
Joined: Thu Oct 14, 2004 6:23 pm

Arrays and Sessions

Post 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!
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

next($_SESSION['kids']) work to get to next member of array.
Post Reply