I'm working on a page which displays details for a given record, and allows the user to flip back and forth through a large set of records, much like a set of index cards. "Previous" and "Next" buttons reload the "card" with the new record id.
It is important that the URLs for the "cards" be very simple and static (easily bookmarked), along the lines of: "card.php?id=123". The complexity comes because there are a number of ways in which one would want to flip back and forth: by date, by creator, etc. We have a select menu on the card which provides these options. If the prev/next buttons and select menu are part of a form, one can check the menu upon the reload of the page and find the correct new id, but the page in this case will not have a useful, clean URL. Most likely it will reference the referring card. We donšt want that. What we need is a way of saying "if the menu says date, use this id", etc. It seemed to me that we might be looking at problem requiring a client-side solution, but my javascript experiments have been frustrating, and seem to be veering into browser-conditional waters - one of the great arguments for server-side scripting. Still the js approach has been closest to what we need: the php script puts all the possible links from that card into the page, and then the js function uses the correct one. Does anyone have any advice? Thanks -eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php