
Originally Posted by
bladysh
Throughout my site I have a couple different signup forms for a newsletter. I have created a thank you page for all those signups.
From the thank you page I am trying to create a redirect command to a new page based on what page/form (each page having a different form.) they signed up on.
I would like it to be timed so they can see and read one short line on the page saying "thanks for signing up" before being redirected.
I am open to suggestions using php,java or multiple meta redirects. I have not yet created any code because know what the command would be for sending a redirect based on the page they came from or form they signed up.
A common way of doing this is to load the thankyou page with a querystring of where the redirect is going to go.
http://www.domain.com/thankyou.php?r...oppinglist.php
Then, the thankyou.php page sets a timed meta-redirect to the place in the querystring.
PHP Code:
$location = filter_input(INPUT_GET, 'return', FILTER_SANITIZE_URL);
echo '<meta http-equiv="refresh" content="10;url=http://' + $_SERVER['PHP_HOST'] + '/' + $location + '">';
I'm not in a position to test as of this moment, but something like that does the job.
Bookmarks