Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Passing a subid tracking code on a website?

    Hello Ladies and Gents,

    Trying to pass a subid that is being generated from an affiliate site, venticore.

    In short, venticore creates a random id that is passed onto our site. We then need to track and store that id to be pulled up once a user has actually purchased the product and has reached the thank you page. The thank you page needs to pull that unique id for that user and plug it into the code provided by venticore.

    I'm a php noob, and might have been searching for the wrong thing, just looking to get pointed in the right direction to find the code to use for something like this. I figure there has to be good examples of this out there.

    Thanks!
    Last edited by IN-FLT; 09-10-2009 at 07:42 PM.

  • #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    to store the id use:

    Code:
    <?
    $_SESSION['subid'] = $_REQUEST['subid'];
    ?>
    then to bring it back up on the checkout page just use:\

    Code:
    <?
    echo $_SESSION['subid'];
    ?>

  • Users who have thanked angst for this post:

    IN-FLT (09-10-2009)

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks for the help angst!

    so for the thank you page we would end up with some code such as...

    Code:
    <img src=https://www.vintacore.com/ashjujd73hdsja/manual.php?sid=[<? echo $_SESSION['subid']; ?>]&rate=30&ip_override=yes width="1" height="1" alt="">

  • #4
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    yes, thats correctly. only you shouldn't need the extra brackets.

    just
    Code:
    <img src=https://www.vintacore.com/ashjujd73hdsja/manual.php?sid=<? echo $_SESSION['subid']; ?>&rate=30&ip_override=yes width="1" height="1" alt="">

  • Users who have thanked angst for this post:

    IN-FLT (09-10-2009)

  • #5
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    ok thanks so much !!

  • #6
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    ok almost resolved... got around to testing today...

    when the url comes up in the browser it is : http://www.xxxxxxx.com/subfolder/subid=64_25084867 where _25084867 is always random... how would i need to modify this code to read the incoming variable and actually load the page? As of now all i get is the 404 page.. saying it cannot find the url

  • #7
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    assuming that your page is named index.php, you should be able to access it like this:

    http://www.xxxxxxx.com/subfolder/?subid=64_25084867

    or

    http://www.xxxxxxx.com/subfolder/scr...id=64_25084867

  • #8
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks Angst!

    The top link definitely takes it to the 404 page.

    the 2nd link, if i replace script.php with index.php?subid.... works, however it does not seem to be passing the code over when i go to the success page. Is there something I'm missing?

  • #9
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    just make sure that you have $_GET['subid'] in your index.php

    try addeding
    PHP Code:
    echo  $_GET['subid']; 
    to test it.

  • #10
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by angst View Post
    just make sure that you have $_GET['subid'] in your index.php

    try addeding
    PHP Code:
    echo  $_GET['subid']; 
    to test it.
    That is working.. it is showing the code on the index page, just not getting it to show on the success page.
    Last edited by IN-FLT; 09-17-2009 at 06:56 PM.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •