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!...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.