I am trying to save a redirect URL for use on several pages later, but it is difficult for me to figure out how to get it from one place to another.
Usually I just passed the variable through the url, but since the redirect url contains url variables, this does not work.
To give you a better idea of what I'm trying to do, here is the structure.
PAGE 1: User can click the link to add content on the page PAGE 2
PAGE 2: User enters text. Submitting a form on this page calls "formubmit.php", where MySQL data records are processed. At the end of this, I need to redirect the user to PAGE 1 again. The redirect URL must exactly match what was originally on page PAGE 1
Does anyone have any suggestions on this?
source
share