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

HELP! Looking for coreg form auto submit strategy/logic...

Discussion in 'CPA' started by jsmash, Feb 5, 2013.

  1. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Hello,

    I made a thread a week or so ago regarding this and thought I had found the answer...

    To much avail i still have some gaps in this theory and am looking for anyone that can help pull it together for us. We are even willing to compensate for working logic.

    We have a coreg form on our site where we can display offers like the image below in the registration process...

    Capture97.PNG

    When the user just checks yes/no is were we are needing some guidance as my dev is not quite BH enough to figure this out. The key here is to have this all work behind the scenes with email submits, etc. He has tested many theories but without success.

    After they click "yes" and hit "submit", this is the logic I have learned is best but still need a bit of help with:


    1. The session variables and reg data gets passed to a script
    2. The script then posts that data to the offer page (behind the scenes in an i-frame)
    3. Then the offer is submitted with jav

    Is this the correct logic? And if so...does anyone have code for this that we could compare with?

    Any guidance on this is GREATLY appreciated as we are looking to utilize this to monetize our front end immediately!
     
  2. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,489
    On submit you should save the options the user chose in variables. Say you have 6 variables because you have 6 possible offers you want the user to see. You only display the offer to the user if they click 'Yes' so therefore a PHP if statement will work well.

    It would be best to utilize an iframe as there will be some redirects. So on submit the users variables will be saved like this for example:

    The user has clicked yes for a total of three offers. So now we direct the user to a page within the iframe like this where our first offer is held: http://offer.com/coreg1.php

    Now what we do is see if the user clicked yes for this offer or not. Like so:

    What this code is doing is, if the user clicked 'Yes' it displays your offer iframe, if they clicked 'No' it redirects to the next page for the next offer until it has gone through each offer.

    Pretty simple stuff but it does take a lot of problem solving :)
     
    • Thanks Thanks x 1
  3. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Wow! That is great information! Let me ask you, is there a way to auto submit the form with java though in the background...so the user never sees the page? If this is not possible, then I will go with your method above (great stuff), but if we can make it so the user never has to see the iframed offer and it auto submits...then that is ideal.

    I already have approval to do this through 3 networks...it is very similar to how Opt-Intelligence or Tiburon media do their yes/no coreg paths. You can see this on cashcrate.com reg process.

    I really, really appreciate your feedback!
     
  4. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,489
    The networks should really be the ones to give you the information on this. I run coreg offers presently but I have never done it like they have, might be something I will have to look into also :)
     
    • Thanks Thanks x 1
  5. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Great thanks so much man! If I cannot get guidance on my ultimate version I will be taking your advise on the I-frame :)
     
  6. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Any other thoughts/ideas/logic from anyone else??? :)