Hi !
I am testing a contact form that can be called from about anywhere on my site. After submitting the form, I need to send the user back where he/she was when they called the form. That can be anyone of the 520 various pages of the site.
One way to do it would be to get the current url at the time the form is called, store it in some variable, and use it later to redirect on submit.
And I would like to test this feature on my local test site, so I have to make that work for relative paths, like index.php, not http://mysite.net/index.php.
I've played with the redirect feature, but I guess there is something I do not understand.
Thanks for the help,
Christian
I am testing a contact form that can be called from about anywhere on my site. After submitting the form, I need to send the user back where he/she was when they called the form. That can be anyone of the 520 various pages of the site.
One way to do it would be to get the current url at the time the form is called, store it in some variable, and use it later to redirect on submit.
And I would like to test this feature on my local test site, so I have to make that work for relative paths, like index.php, not http://mysite.net/index.php.
I've played with the redirect feature, but I guess there is something I do not understand.
Thanks for the help,
Christian