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

{HELP} Changing text on button after CPA offer is completed

Discussion in 'PHP & Perl' started by acapitalTee, Mar 17, 2016.

  1. acapitalTee

    acapitalTee Power Member

    Dec 20, 2012
    Likes Received:
    Hi anyone reading this,

    I have a rewards site where users complete offers for rewards. I want to change the text of a button from "Complete Survey" to "Completed" after they complete the survey.

    I have been looking for someone on fiverr to do this but cannot figure out how to explain what I want.

    I am using the built in content locker from my cpa network and it allows me to enter a url to take users to after the offer is completed. I was thinking this url redirect could be a trigger of some sort to change the text to "Completed" or would using cpa postback be a better idea?

    I just need suggestions on what is plausible to do in my situation and/or how best to explain what I need done to someone. Help? Please?
  2. duca

    duca Registered Member

    Sep 18, 2008
    Likes Received:
    If you can set query string URL when offer is completed and if you use PHP,then you can use something like this:
    URL where are users redirected once they complete the offer: http://www.yoursite.com/yourpage.php?completed=1
    PHP code for page yourpage.php:
    $is_completed = $_GET['completed'];
    if ($is_completed == 1) { ?>
    	<a href="http://www.yoursite.com/path_to_file.zip">completed</a>
    <?php } else { ?>
    	<a href="http://www.path-to-offer.com">not completed</a>
    <?php } ?>
    Same thing can be accomplished using JavaScript.

    Please note that this is not perfect solution. You should talk to your CPA company, they might have something better.
    • Thanks Thanks x 1
  3. AdvancedDevelopment

    AdvancedDevelopment BANNED BANNED

    Mar 23, 2016
    Likes Received:
    While the example above is a basic and easy solution I wouldn't recommend using it without at least a minimum of sessions being included and checked or perhaps using $_POST instead of GET. The url can easily be manipulated to recieve the 'end product' using that method by simply adding &completed=1 into the chosen URL.