1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I redirect someone after they enter a email submit.

Discussion in 'HTML & JavaScript' started by joejim, Nov 1, 2008.

  1. joejim

    joejim Registered Member

    Joined:
    Oct 10, 2008
    Messages:
    68
    Likes Received:
    2
    I'm a noob and not sure where to put this. How do I redirect someone after they enter a email submit offer? They're going to go back to the original page when there done submitting the info I assume. How can I direct them to a new url once there done with the offer. thx for the help.
     
  2. bmph8ter

    bmph8ter BANNED BANNED

    Joined:
    Jun 30, 2008
    Messages:
    67
    Likes Received:
    15
    If they are filling in a CPA lead, there may not be a way you can do it. Unfortunately, the site they are submitting to controls where they go after submitting the form.
     
  3. joejim

    joejim Registered Member

    Joined:
    Oct 10, 2008
    Messages:
    68
    Likes Received:
    2
    that sucks I'm not sure if they even get redirected back to my landing page.
     
  4. crsk8andsno56

    crsk8andsno56 Senior Member

    Joined:
    Jan 20, 2008
    Messages:
    976
    Likes Received:
    566
    You can control it if you iframe the offer then include a metafresh after so and so seconds
     
  5. joejim

    joejim Registered Member

    Joined:
    Oct 10, 2008
    Messages:
    68
    Likes Received:
    2
    can you give me a sample of what this would look like I'm a noob I've heard of iframe but don't know how to use it. thx
     
  6. bmph8ter

    bmph8ter BANNED BANNED

    Joined:
    Jun 30, 2008
    Messages:
    67
    Likes Received:
    15
    Good point. I didn't even think of that. I guess that whatever you put in the page (say a 60 second meta refresh) would over ride anything the network did. Unless their code contained an iframe breaker....
     
  7. joejim

    joejim Registered Member

    Joined:
    Oct 10, 2008
    Messages:
    68
    Likes Received:
    2
    I found some code on google but my email submit wont open in the iframe any ideas why the affiliate page won't open in a iframe?
    There's a few things in the code I would like to change and was wondering if I could get some help. With this code you have to click start to execute it how do you get it run when the page loads. Also the code loops through the urls I would like it to stop at the last url and break out of the iframe.
    Here's the code:
    <script>
    var arrURL=new Array("http://www.yahoo.com", "http://www.google.com", "http://www.ynet.co.il");
    var curIndex=0;
    var timer=0;
    var refreshRate=10; //seconds
    function ChangeFrame()
    {
    clearTimeout(timer);
    var url=arrURL[curIndex];
    window.open(url, "Frame1");
    curIndex = ((curIndex+1)%arrURL.length);
    timer = setTimeout("ChangeFrame()", refreshRate*1000);
    }
    </script>
    <iframe name="Frame1" id="Frame1" src="about:blank" width="500" height="300"></iframe>
    <input type="button" onclick="ChangeFrame();" value="Start" />
     
  8. WickednDivine

    WickednDivine Executive VIP Premium Member

    Joined:
    Jul 29, 2008
    Messages:
    468
    Likes Received:
    344
    This doesn't always work. MANY offers have javascript frame breakers that are just about impossible to bypass.
     
  9. PanamaHosting

    PanamaHosting BANNED BANNED

    Joined:
    Jun 22, 2008
    Messages:
    133
    Likes Received:
    56
    HTML:
    metarefresh

    PHP:
    Location: redirect
     
  10. joejim

    joejim Registered Member

    Joined:
    Oct 10, 2008
    Messages:
    68
    Likes Received:
    2
    HTML:
    metarefresh

    PHP:
    Location: redirect

    I'm a noob what would the code look like for this?