Jump to content

[SOLVED] capturing the end of a URL? Session variable?...


ShootingBlanks

Recommended Posts

Hello...

 

I have a system where users log in, and then they can see a list of documents.  There are 15 document names listed at a time, with "next"/"prev" buttons to navigate to the next/prev set of 15 document names.  When they find the one that they want to edit, they click the "EDIT" link next to the document name, and it takes them to the fields to edit.  All of this works just fine...

 

When they've submitted their edits (or if they click a "Go Back" link on that update page), it takes them back to the default "documentList.php" page.  I want to know if there is a way to (when they click the "EDIT" link on the document list page, maybe?) to capture all of the stuff after "documentList.php" in the URL (starting with the "?").  That way, instead of having them always go back to the first set of 15 records, I can have the "Go Back" link send them back to the last set of 15 records that they were viewing (that would have the record that they last clicked to edit)...

 

If there's a different way from what I described above to approach my same end-result that I want, I'm open to that suggestion as well...

 

Does what I just said make sense?  Is that possible?  Session variable, maybe?  I'm not sure - I'm pretty new at PHP, so I apologize if this is a stupid question.  Thanks!...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.