View Single Post
Old 04-22-2008, 09:34 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by Jon Clark View Post
This is the area of question...
Code:
        <?php 
$site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=http://www.xtremeinterracial.com/splash_a.html"; 
if(isset($_GET['ccbill_id'])){ 
$site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=" . $_GET['site_link']; 
} 
?><a href="<?php echo $site_link; ?>"><img src="images/pic-gall-01_53.gif" width="697" height="53" alt="" border="0"></a></td>
You're missing a hell of a lot, dude.

Here's just an example to make it 'work':

Code:
<?php
$link = isset($_GET['site_link']) ? $_GET['site_link'] : "http://www.xtremeinterracial.com/splash_a.html";
$site_link = isset($_GET['ccbill_id']) ? "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=$link"   : "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=$link"
... 
?>
This will test for site_link being set, and if ccbill_id is set, will construct, accordingly. ccbill_id is kind of a nobrainer, but I'm lazy, and not getting paid for this.

You might also consider testing with a:
Code:
if (parse_url($site_link)) {... works } else { ... failed }
construct, so if someone's too retarded to set a proper URL, you get credited.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote