Help Needed - PHP, Landing Pages and Passing Variables to SubIDs

by Edge82
2 replies
Hi Warriors,

It's really silly, but I cannot find the answer to this trivial question anywhere. Let's say the link in my ad on POF, leading to my landing page is this:

mydomain.com/dir/landingpage.php?usersage={age:}

So variable usersage will collect some age value from POF user. How do I pass this value to some SubID, let's say s2? I guessed it can only be done when a user follows an actual affiliate link, by clicking the button on the landing page. That's why a temporary variable like usersage would be needed, right? I searched and then tried all of these:

myaffiliatelink&s2=usersage
myaffiliatelink&s2=$usersage
myaffiliatelink&s2=' . $usersage . '

Nothing works. After I click the button on my landing page, Neverblue (GlobalWide Media) reporting always shows that s2 value is exactly the expression that follows s2= (that would be usersage OR $usersage OR ' . $usersage . '). I cannot find a way to pass the numerical value of usersage variable.

BTW, while I was direct linking, I would simply put s2={creativeid:} to get the ID of a creative being clicked on and that worked perfectly. I guess it would work with {age:} too, but I cannot find what to write when a landing page is involved.

P.S. I'm not using any tracking software, just passing the data to SubIDs and then using the reports on my affiliate network.

Can someone please help me as soon as possible. Thank You!
#landing #needed #pages #subid #subids #variable value
  • Profile picture of the author Edge82
    Can some PHP genius help please?

    In the meantime, I learned that affiliate link would have to be inside PHP code. Here is what I found on the net:

    1. Solution:

    <?php
    ----- My PHP Code----
    ?>
    <a href="https://mysite.com/">My Site</a>
    <?php
    ----- My PHP Code----
    ?>

    2. Solution:

    <?php
    Echo "<a href=https://mysite.com/>My Site</a>"
    ?>

    First solution is not quite clear to me, so I went with the second one. And then I found more dilemmas:

    1. Is this <a href=https://mysite.com/> correct or should it be <a href="https://mysite.com/">
    2. Should it be ' instead of " and where, just for echo or everywhere except echo? It looks like these should be different.
    3. I found a thread here in which someone says that with ' after echo, PHP will not parse variables in the string, and with " it will. Then he puts \" in all other places instead of ". I tried that, placed " only for echo (after it and at the end), while I replaced " signs in A HREF with \" and later tried with ' too but nothing works.

    I tried practically all combinations, at least I think I tried all of them. Tried combining with s2=$usersage and s2=' . $usersage . ' but nothing.

    PHP masters, please help!
    {{ DiscussionBoard.errors[10315125].message }}
  • Profile picture of the author Edge82
    Never mind, I've been searching for two days, finally found the answer here:

    http://www.warriorforum.com/ad-netwo...view-page.html

    I can't thank you enough Derek!
    {{ DiscussionBoard.errors[10315312].message }}

Trending Topics