Link to a form - store origin URL and then return to origin URL after submit
Posted on 2014-01-08
This is what I wish to accomplish:
For example, I have a path like this:
At the bottom of this page, is a link to take the reader to... feedbackform.html
When one clicks on this link, the current path will be stored and get 'injected' into one of the form fields. They fill out the standard form information (name/email/message)...
When the person clicks submit, the form information is sent to a set email address and then this person is automatically returned to the above (originating) page.
The form part is easy but I am unsure how to store the originating URL, place it into the form, and then return to the originating URL.