[SOLVED]Pass an array to another page BUT could be used

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
User avatar
Weiry
Forum Contributor
Posts: 323
Joined: Wed Sep 09, 2009 5:55 am
Location: Australia

Re: Pass an array to another page BUT could be used simultan

Post by Weiry »

Well because you posted 4 lines of code, you give me 1 line of code that i can suggest.

Code: Select all

print_r($_SESSION)
put that line both after $_SESSION["word"] = $word;
and again after $all = $_SESSION["word"];

This will tell you exactly what is in the $_SESSION array.
I would also put a print_r($word) on your first page to see if anything exists in the original array as well.
Post Reply