Page 1 of 1

cant pass arrays to the next page and display them via

Posted: Mon Dec 30, 2002 4:34 pm
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:

Re: cant pass arrays to the next page

Posted: Mon Dec 30, 2002 8:12 pm
by lostboy
how are you passing the array? Consider storing the array as a session value...

Posted: Tue Dec 31, 2002 4:57 am
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.