PHP Code:
switch($HTTP_GET_VARS["id"]){
case 0: $url = "http://www.sponsor1.com/"; break;
case 1: $url = "http://www.sponsor1.com/"; break;
case 2: $url = "http://www.sponsor1.com/"; break;
}
echo
'
html code
to pop something up
here
';
header("Location: $url");
?>
Or put all your html in a file called popup.htm and then:
PHP Code:
switch($HTTP_GET_VARS["id"]){
case 0: $url = "http://www.sponsor1.com/"; break;
case 1: $url = "http://www.sponsor1.com/"; break;
case 2: $url = "http://www.sponsor1.com/"; break;
}
include "popup.htm";
header("Location: $url");
?>
Contact me if you need some serious code done.