- LennyAsked on July 09, 2012 at 03:07 PM
I'd like to use your form to collect an email address, then redirect visitors to a video page. My issue is dealing with returning visitors. They will not want to submit their email address each time they come back to the page. I was planing to hide the form and the video player page in an iframe. I'm not concerned with the redirected page being accessable to those who really want to find it. I would just like to make it easy for returning vistors so they don't have to re-enter their email.
From what I've seen so far, this app looks great!
- JotForm SupportNeilVicenteAnswered on July 09, 2012 at 07:01 PM
You will have to set a cookie on the user's browser once they reach the video page. Then, the form page will use a PHP script to determine if the cookie has been set or not.
Here's the scenario:
If the cookie exists, the user will automatically be redirected to the video page.
Else, nothing will happen. The user will have to submit the form to get to the video page.
I will try to come up with a PHP script if my time permits. In any case, here's a little manual that might help:
- JotForm SupportNeilVicenteAnswered on July 09, 2012 at 08:24 PM
Alright, assuming your server runs PHP, try this solution:
Copy the codes below and insert it in your video page's source code (above everything else):
Then, insert the following codes in your form page's source code (replace the bolded URL with your video page's URL):