View Single Post
Old 06-02-2008, 05:13 AM  
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by k0nr4d View Post
you all fail. That code would rely on register_globals being on, which is off by default under php5.
<?php
$id = $_GET[id];
header('Location: http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=98956-0000&PA='.$id.'&HTML=http://www.site.com');
exit();
?>
Agreed... BUT you don't know he has to get ID by GET do you? and you forgot two quotation marks in your get.

Shaze Here is a example where it's a bit more split up.

You should really read http://w3schools.com/php/default.asp

It takes 30 minutes and will save you many many hours in the future.

<?php
$id = $_REQUEST["id"];
$urlstring = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=98956-0000&PA=".$id."&HTML=http://www.site.com";
header("Location: " . $urlstring);
exit();
?>
__________________
ICQ# 143561781

Last edited by polle54; 06-02-2008 at 05:14 AM..
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote