it will look like this:
PHP Code:
<?php
if (!isset($_SERVER['QUERY_STRING'])) {
$wmid = "YOUROWNCODE";
} else {
$wmid = $_SERVER['QUERY_STRING'];
}
?>
http://gallery.com/tgp/index.php?xxxxxx where the xxxxxx are the linking code....
just copy/paste the
PHP Code:
<?php print $wmid;?>
on your page so your link will look like this:
PHP Code:
<a href="http://sponsor.com/affiliateid=<?php print $wmid;?>">CLICK HERE</a>