View Single Post
Old 03-25-2003, 05:08 PM  
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Quote:
Originally posted by keyDet79
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"); 
?> 
That won't work. You can't send html before a "header" command. You'll get the "headers already sent" error, for obvious reasons.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote