•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,620 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 5406 | Replies: 0
![]() |
•
•
Join Date: Jul 2004
Location: Arizona State University
Posts: 56
Reputation:
Rep Power: 5
Solved Threads: 1
If your familiar with database search results, then you probably know how useful the GET method is. My results page is a list of site members from the database. We want to have a feature that allows users to add these members to a html select box to "save a list of favorites". Every time a user clicks the Add button, the page redirects to itself and we are using session variables to save the list.
Here's the problem with the Browser Back button
1.) Lets say your on page one and you add two members to the list. The GET url will have &list=1,2 appended to the end where 1 and 2 are the two members. The session looks at the variable called "list" and makes an array from the list
2) The user goes to page two of the search results. They add another member. Because the page redirects to itself right after adding to save the added member, the new GET url is &list=1,2,3 The session is resaved with this list
3) The user clicks "BACK". Browsers dont rebuild a dynamic page when you click back so the member that got added in the second page is not present.
How do I solve the back problem?
-Brad
Here's the problem with the Browser Back button
1.) Lets say your on page one and you add two members to the list. The GET url will have &list=1,2 appended to the end where 1 and 2 are the two members. The session looks at the variable called "list" and makes an array from the list
2) The user goes to page two of the search results. They add another member. Because the page redirects to itself right after adding to save the added member, the new GET url is &list=1,2,3 The session is resaved with this list
3) The user clicks "BACK". Browsers dont rebuild a dynamic page when you click back so the member that got added in the second page is not present.
How do I solve the back problem?
-Brad
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- Using Back Button Refreshes Page (Web Browsers)
- Back button brings "cannot display ... " certain sites (Windows NT / 2000 / XP / 2003)
- Get submitted values when navigating back with browser back button (ASP.NET)
- Back button - has login info (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: PHP 5.0 Finally Released!
- Next Thread: Complete List of Mysql Commands for PHP tokenization script.


Linear Mode