Pass array through query strings

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
soniketan23
Forum Newbie
Posts: 1
Joined: Thu Aug 03, 2006 9:04 am

Pass array through query strings

Post by soniketan23 »

I have a page X where i m submitting an array A

I retrieve arrray A from page X on page Y

Now there are 3 links on page Y

When i click on any of the link the same page (Y) gets refreshed so the value of array A gets lost as i refreshed the page

So i just wanted to know how can i pass array through query string so that whenever i refreshed the page Y i get the same value of array A

Pls provide if there is another solution to above mentioned problem.

Many thanks in advance

- ketan.
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

It's not a good idea to pass array through query string. It's good if you use session to store those values . You can retrieve those values from any pages you want until you close the session.

Cheers,
Dibyendra
Post Reply