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.