topical media & game development

talk show tell print

professional-search-07-seophp-product.php / php



  <?php
  
  // load library that handles redirects
  require_once 'include/url_redirect.inc.php';
  
  // start PHP session
  session_start();
  
  // save affiliate ID
  if (isset(_REQUEST['aff_id']))
  {
    _SESSION['aff_id'] = _REQUEST['aff_id'];
  }
  
  // redirect requests proper keyword-rich URLs when not already there
  fix_category_product_url();
  
  // display product details
  echo 'You have selected product #' . _GET['product_id'] .
       ' from category #' . _GET['category_id'];
  
  // display affiliate details
  echo '<br /><br /> You got here through affiliate: ';
  if (!isset(_SESSION['aff_id'])) 
  {
    echo '(no affiliate)'; 
  }
  else
  {
    echo _SESSION['aff_id'];
  }
  
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.