Yo PHP guys.......PHP noob here has a question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Young
    Bland for life
    • Nov 2004
    • 10468

    #1

    Yo PHP guys.......PHP noob here has a question

    <----------------- Noob

    How hard is it to snatch up a referring URL...find an affiliate code or ID in that referring URL....and then save that shit to a file or display it on a page?

    I'm just learning PHP so if someone could just point me in the right direction.

    Sic...you out there dude?
    ★★★
  • Jakke PNG
    ex-TeenGodFather
    • Nov 2001
    • 20306

    #2
    Very easy.
    ..and I'm off.

    Comment

    • Jakke PNG
      ex-TeenGodFather
      • Nov 2001
      • 20306

      #3
      send them to like

      url.com/index.php?ref=123456

      the on the page:
      <?php echo $_GET['ref']; ?>
      that prints out 123456
      so if you want to transfer it to the next page
      <a href="http://www.nexturl.com/index.php?ref=<?php echo $_GET['ref']; ?>">
      rinse and repeat
      ..and I'm off.

      Comment

      • Young
        Bland for life
        • Nov 2004
        • 10468

        #4
        Originally posted by TeenGodFather
        send them to like

        url.com/index.php?ref=123456

        the on the page:
        <?php echo $_GET['ref']; ?>
        that prints out 123456
        so if you want to transfer it to the next page
        <a href="http://www.nexturl.com/index.php?ref=<?php echo $_GET['ref']; ?>">
        rinse and repeat
        Thanks I appreciate it. Still learning...this helps alot.
        ★★★

        Comment

        • ddfGandalf
          Confirmed User
          • Feb 2005
          • 534

          #5
          For less typing you could use <?=$_GET['ref']?> instead of <?php echo $_GET['ref'];?>

          Comment

          Working...