small PHP question [pls help!]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DutchTeenCash
    I like Dutch Girls
    • Feb 2003
    • 21684

    #1

    small PHP question [pls help!]

    Id like to see if an aff code is there or not for a test, but with my C64 programmaing capabilities Im not getting there Pls help...


    http://refer.ccbill.com/cgi-bin/clic...y.com/test.php

    This is in the test.php:

    <?php

    if (PA = = 0) {
    echo "AFF CODE NOT THERE";
    } else {
    echo "AFF CODE THERE";
    }
    ?>

    It needs to print AFF CODE THERE when the &PA=999999 or so and if PA isnt there (zero) it needs to print AFF CODE NOT THERE. I know the = = have a space but otherwise the haha codes comes in...

    Any 2 cents?

    thanks!

    Bob

    ICQ 16 91 547 - SKYPE dutchteencash
    bob AT dutchteencash DOT com
    ... did you see our newest Sweet Natural Girl Priscilla (18)?
  • darksoul
    Confirmed User
    • Apr 2002
    • 4997

    #2
    use
    Code:
    $_GET['PA']
    instead of just PA
    1337 5y54|)m1n: 157717888
    BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
    Cambooth

    Comment

    • Jakke PNG
      ex-TeenGodFather
      • Nov 2001
      • 20306

      #3
      hmm.. I'm no guru by any stretch of imagination..but if your page is on strawberrysandy.com and the variable goes to refer.ccbill.com domain, I don't think it'll carry on to strawberrysandy.
      ..and I'm off.

      Comment

      • darksoul
        Confirmed User
        • Apr 2002
        • 4997

        #4
        also, instead of
        = = you should use
        Code:
        if(isset($_GET['PA']))
        1337 5y54|)m1n: 157717888
        BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
        Cambooth

        Comment

        • Jakke PNG
          ex-TeenGodFather
          • Nov 2001
          • 20306

          #5
          however darksoul seems to have more clue than me..so maybe you ought to listen to him instead.
          I suck at teh interwebs
          ..and I'm off.

          Comment

          • darksoul
            Confirmed User
            • Apr 2002
            • 4997

            #6
            Originally posted by TeenGodFather
            hmm.. I'm no guru by any stretch of imagination..but if your page is on strawberrysandy.com and the variable goes to refer.ccbill.com domain, I don't think it'll carry on to strawberrysandy.
            you're right missed that.
            1337 5y54|)m1n: 157717888
            BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
            Cambooth

            Comment

            • Jakke PNG
              ex-TeenGodFather
              • Nov 2001
              • 20306

              #7
              Originally posted by darksoul
              you're right missed that.
              Goddamn! Didn't see that one coming. Sweet. I rock.
              ..and I'm off.

              Comment

              • DutchTeenCash
                I like Dutch Girls
                • Feb 2003
                • 21684

                #8
                Originally posted by darksoul
                you're right missed that.
                yeah doesnt work... shoot it should be possible somehow...

                Basically what I want is to be able to print a link on a .html site when theres NO aff code and when there IS it needs to be remove.

                Some aff hate the bloglink so I want that to be removed automatically when an aff send the link. When its a typein it can be there.

                Any more 2 cents?

                ICQ 16 91 547 - SKYPE dutchteencash
                bob AT dutchteencash DOT com
                ... did you see our newest Sweet Natural Girl Priscilla (18)?

                Comment

                • darksoul
                  Confirmed User
                  • Apr 2002
                  • 4997

                  #9
                  Originally posted by uproared
                  Impossible using standard CCBILL links.
                  not really, they have the option to pass you back any variable you set.

                  I don't have the api's at hand right now but I'll take a look when I get home.
                  1337 5y54|)m1n: 157717888
                  BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                  Cambooth

                  Comment

                  • Jakke PNG
                    ex-TeenGodFather
                    • Nov 2001
                    • 20306

                    #10
                    Originally posted by darksoul
                    not really, they have the option to pass you back any variable you set.

                    I don't have the api's at hand right now but I'll take a look when I get home.
                    As far as I know they only send info about signups.. not other data. Unless you put up a datalink when you get rebills and chargebacks and such, I doubt there's a way to get non-signup related info from them.
                    ..and I'm off.

                    Comment

                    • DutchTeenCash
                      I like Dutch Girls
                      • Feb 2003
                      • 21684

                      #11
                      hmm shame, so the only way to enable that would like adding

                      www.strawberrysandy.com/test.php&blog=off

                      or so?

                      darksoul can you shoot me an icq to see if you can solve this? 16 91 547 thanks!

                      ICQ 16 91 547 - SKYPE dutchteencash
                      bob AT dutchteencash DOT com
                      ... did you see our newest Sweet Natural Girl Priscilla (18)?

                      Comment

                      • darksoul
                        Confirmed User
                        • Apr 2002
                        • 4997

                        #12
                        Originally posted by TeenGodFather
                        As far as I know they only send info about signups.. not other data. Unless you put up a datalink when you get rebills and chargebacks and such, I doubt there's a way to get non-signup related info from them.
                        we're talking about click tracking here tho which they do provide
                        the HTML var can not only contain an url but variables too.
                        so you can put:
                        HTML=http://www.domain.com/?VAR=VALUE&VAR2=XXX
                        this variables are usually populated by you when the user click
                        but some can be populated by ccbill. I have to lookup their api.
                        1337 5y54|)m1n: 157717888
                        BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                        Cambooth

                        Comment

                        • DutchTeenCash
                          I like Dutch Girls
                          • Feb 2003
                          • 21684

                          #13
                          thanks for hitting me up!

                          ICQ 16 91 547 - SKYPE dutchteencash
                          bob AT dutchteencash DOT com
                          ... did you see our newest Sweet Natural Girl Priscilla (18)?

                          Comment

                          • rowan
                            Too lazy to set a custom title
                            • Mar 2002
                            • 17393

                            #14
                            Why don't you just get people to send to a different URL? You can include("...") the original content.

                            eg, you could name a file tournoblog.php and put something like this in it:

                            <?php
                            $noblog = 1;
                            include "tour.php";
                            ?>

                            Comment

                            • gornyhuy
                              Chafed.
                              • May 2002
                              • 18041

                              #15
                              Cheers to GFY for an actual useful technical discussion... Let us know if you figure it out.

                              icq:159548293

                              Comment

                              • DutchTeenCash
                                I like Dutch Girls
                                • Feb 2003
                                • 21684

                                #16
                                Originally posted by uproared
                                As I mentioned above, if you're using 'standard' ccbill links it is not possible. If you add variables to the end of target url then obviously they will be passed through. It's impossible to access the variables sent to ccbill (namely the wm and affliate IDs).

                                The API is only relevant for sales.
                                got that reply too... gotta think over the whole thing come up with another solution...

                                ICQ 16 91 547 - SKYPE dutchteencash
                                bob AT dutchteencash DOT com
                                ... did you see our newest Sweet Natural Girl Priscilla (18)?

                                Comment

                                Working...