This topic is locked
[SOLVED]

 List Page Keep Variable

6/19/2013 3:12:22 PM
PHPRunner General questions
W
wildwally author

Wondering the best way to handle switching between list pages that utilize a $_GET['uid'] variable. On the first page the data is specific to the user, which comes from the uid variable. However, when I select another page such as page 3 - the ?uid=55 is gone and it now says ?goto=3 so my results default back to the original user id and not the targeted id of 55.
Anyway to accomplish this in a clean manner.

C
cgphp 6/19/2013

Why not use a session variable in place of the GET parameter?

W
wildwally author 6/19/2013



Why not use a session variable in place of the GET parameter?


I guess there is no real reason why I couldn't do that - either way I have some work to do to make it work. Thanks
Edit after going back I now remember why I asked this question. I had looked at the SESSION route but was using the GET to determine if a certain route was being taken by the user. Not that I can't still use the SESSIONS I just have to get more creative in making sure the desired effect is going to take place.