cant pass arrays to the next page and display them via

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
singh1
Forum Newbie
Posts: 2
Joined: Mon Dec 30, 2002 4:34 pm

cant pass arrays to the next page and display them via

Post by singh1 »

Hi everybody
I am a newby in php so pardon my silly question. I am having a tough time passing an array from page one saved with .php to another .php page. The idea is to display the array on page two and be able to compare with the clicked array element with the complete array passed as a hidden type. Please help me and help hair loss
thanks
:cry:
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Re: cant pass arrays to the next page

Post by lostboy »

how are you passing the array? Consider storing the array as a session value...
User avatar
TheTestUser
Forum Newbie
Posts: 9
Joined: Sat Dec 14, 2002 9:25 pm

Post by TheTestUser »

If you are intent on sending that array, try serializing it first.

I remember having problems with just serializing an array so I also had to use base64_encode. Although simply urlencoding it would work for you.
Post Reply