Simple PHP Help Needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phasic
    Confirmed User
    • Jul 2005
    • 2104

    #1

    Simple PHP Help Needed

    Basically all I need is to be able to do the following.

    http://site.com/page.php?ref=name

    then in the page it makes the links that i specify do the following.

    http://sponsor.com/campaign=name

    Can I get some help on this?

    Thanks!
    Brief revisit. (mic drop)
  • AndrewKanuck
    Confirmed User
    • Jan 2004
    • 6706

    #2
    Read up on $_request & $_get

    Comment

    • Mr Pheer
      So Fucking Banned
      • Dec 2002
      • 22083

      #3
      Code:
      <?php
       $name = $_GET['ref'];
       echo "<a href=\"http://sponsor.com/campaign=$name\">$name</a><br>";
       ?>
      Last edited by Mr Pheer; 01-03-2007, 11:04 PM.

      Comment

      • Boobzooka
        Confirmed User
        • Aug 2006
        • 626

        #4
        Simpler than it seems. For your example the link should be:
        Code:
        "http://sponsor.com/campaign=<?= $_GET['ref'] ?>"


        BOOBZOOKA
        : Amateur Affiliate Program featuring SellYourSexTape: Real couples document their lovelife for one week.
        HerBedroomWindow: Girls recording themselves alone at home. | DareRing: "Truth Or Dare?" themed adult party games.

        Comment

        • phasic
          Confirmed User
          • Jul 2005
          • 2104

          #5
          Thanks a lot! Trying it out now!
          Brief revisit. (mic drop)

          Comment

          • Mr Pheer
            So Fucking Banned
            • Dec 2002
            • 22083

            #6
            Originally posted by DareRing
            Simpler than it seems. For your example the link should be:
            Code:
            "http://sponsor.com/campaign=<?= $_GET['ref'] ?>"
            hmm.. yeah that way works too

            Comment

            • borked
              Totally Borked
              • Feb 2005
              • 6284

              #7
              <?php
              header("Location: http://sponsor.com/campaign=".$_GET['ref']);
              ?>

              For coding work - hit me up on andy // borkedcoder // com
              (consider figuring out the email as test #1)



              All models are wrong, but some are useful. George E.P. Box. p202

              Comment

              • ToplistBlog_Com
                So Fucking Banned
                • Jul 2006
                • 2065

                #8
                I don't konw PHP

                Comment

                Working...