Quote:
Originally Posted by k0nr4d
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();
?>