View Single Post
Old 03-25-2003, 05:05 PM  
keyDet79
Confirmed User
 
Join Date: Feb 2003
Location: Netherlands
Posts: 1,109
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.
__________________

Multihomed quality BW for less
ICQ 51034232 - MSN [email protected] - Email keydet(at)vibehosting.com

Last edited by keyDet79; 03-25-2003 at 05:08 PM..
keyDet79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote