Question about PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sowned
    Registered User
    • Dec 2002
    • 33

    #1

    Question about PHP

    Hello.

    How would I go about using PHP to make hosted galleries with codes in it? For example >> http://URL.com?referralID=12345, so that all the links on this page also include the referralID=12345 on the end of it?

    Thanks.
    ICQ: 11913439
  • Calvinguy
    Confirmed User
    • Oct 2002
    • 1752

    #2
    The manual is your friend

    Comment

    • gornyhuy
      Chafed.
      • May 2002
      • 18041

      #3
      RTFM

      icq:159548293

      Comment

      • jasonir
        Confirmed User
        • Aug 2002
        • 1887

        #4
        <a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
        ?>">
        ICQ: 61689996

        Comment

        • h0st
          Confirmed User
          • Jul 2001
          • 1216

          #5
          It is not possible with php. try html instead
          Did you say Pimp My Sexlife?

          Comment

          • foe
            Confirmed User
            • May 2002
            • 5246

            #6
            Originally posted by jasonir
            <a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
            ?>">

            Comment

            • foe
              Confirmed User
              • May 2002
              • 5246

              #7
              Even better is using a template system and making it all dynamic ..,.. but thas more involved

              Comment

              • modF
                Confirmed User
                • Aug 2002
                • 1888

                #8
                Originally posted by jasonir
                <a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
                ?>">

                if register_globals is off (as it should be) you will need to pull $referralID from the GET string like this:

                PHP Code:
                $referralID=$_GET['referralID']; 
                

                I do things
                skype:themodF

                Comment

                • Nysus
                  Confirmed User
                  • Aug 2001
                  • 7817

                  #9
                  Originally posted by modF
                  if register_globals is off (as it should be) ...
                  Care to state why you say it should be?..

                  Cheers,
                  Matt
                  What name is pr0 / Untouched Markets using these days? Untouched Markets - pr0 - Refund My Money Now

                  Someone owes me $2,000 because they didn't do any work that was paid for *pointing at pr0 / William / UntouchedMarkets*

                  See http://www.gfy.com/showthread.php?p=16744521 and for more detailed see http://www.gfy.com/showthread.php?t=948645

                  Comment

                  • vending_machine
                    Confirmed User
                    • Jun 2002
                    • 1070

                    #10
                    Originally posted by Nysus


                    Care to state why you say it should be?..

                    Cheers,
                    Matt
                    Security reasons so you can protect your variables. Otherwise people can set malicious variables and do bad stuff. Mkaye?

                    Comment

                    • Alky
                      Confirmed User
                      • Apr 2002
                      • 5651

                      #11
                      Originally posted by Nysus


                      Care to state why you say it should be?..

                      Cheers,
                      Matt
                      well it shouldnt be, but its better coding using the $GET variable...

                      and the above code should be:

                      PHP Code:
                      <a href="http://trageturl.com/page.php?referralID=<?php echo $referralID; ?>">

                      Comment

                      • SicChild
                        Confirmed User
                        • Mar 2003
                        • 365

                        #12
                        You could also run some regex on it if you don't want to go through all the links manually. ;)

                        Comment

                        Working...