Need quick help for PHP URGENT !

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SABAI
    Confirmed User
    • Jan 2001
    • 2880

    #1

    Need quick help for PHP URGENT !

    ok here is what i'm looking for :


    i need the correct syntax for implementing my free hosted galleries for my affiliates .... i had it working up until i had a domain hijacked and all the files gone of the face of the earth .

    affiliate enters his ccbill, verotel or any other biller's reseller ID into a simple GET or POST form , it then shows all the galleries listed like http://gals.mypaysite.com/gal01/index.php?=REFID
    Code:
    <a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?></a>
    and within the index.PHP of each gallery i need a call for the REFID to be included on every link to my paysite like
    Code:
    <a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php print("$REFID");?> 
    &HTML=http://www.footmaniac.com/main.html">
    of course the verotel galleries will be vindex.php, segpay galleries will be sindex.php etc etc linking to the vmain.html and tour billing with verotel , the smain.html and tour billing through segpay and so on .... ( got 6 billing companies : ccbill, segpay, epoch,verotel, zombaio and gxbill )

    i know i'm very close but i can't get it to work as i know shit about programing
  • SilentSound
    Confirmed User
    • Mar 2009
    • 287

    #2
    Hi,

    kinda more a Q&A topic, but here goes...

    if I understand your problem correctly, you passed variables aren't appearing in the code. First, if you want that code to work, you need to have Register Global Variables PHP setting on, which is a security risk, I don't recommend it.

    In your PHP.INI make sure you have

    Code:
    register_globals = off
    That's done, now the code:

    Code:
    <a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?></a>
    $_REQUEST is needed, as all variables parsed from GET/POST input will be there instead of having them automatically appear.

    Next, in the index.php files:

    Code:
    <a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php echo $_REQUEST['id']; ?> 
    &HTML=http://www.footmaniac.com/main.html">
    Because you linked with an id=... in the GET request, you need to use that in the index.php pages.

    Hope that helped.

    Comment

    • SABAI
      Confirmed User
      • Jan 2001
      • 2880

      #3
      YAYEEEEEEEEEEE its working , thanks a bunch man ..... i would have never thought of the $_REQUEST instead of $_GET or $_POST which were returning a whole bunch of useless arrays ...

      Comment

      • SilentSound
        Confirmed User
        • Mar 2009
        • 287

        #4
        I'm not sure why they would be returning useless stuff but hey.. it works!

        Comment

        • Voodoo
          ♥ ♦ ♣ ♠
          • Sep 2002
          • 10600

          #5
          useless arrays are like pointless classes.

          "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

          Comment

          • SABAI
            Confirmed User
            • Jan 2001
            • 2880

            #6
            i meant useless for what i intended to do ;-)

            Comment

            Working...