![]() |
Php programmers - Regarding a php redirect script, can you help me make adjustments?
Hi, I would like to ask for free help from any expert out there. I have a gallery submitted that uses links with php redirect way.
EG my sponsor code on the gallery is in the format "redirect.php?id=XXX" Here is the source code of the PHP file <?php 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; } header("Location: $url"); ?> What I want is, when ever a surfer follows a "redirect.php?id=1" another link to open for him too, like a blur window or pop under? Any way I can achieve this? Thanks up front |
PHP Code:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
|
double post..
|
Best way to do it would send the surfer to a html page with popup code and a hahahahahahahahahaha redirect.
Something like: PHP Code:
|
Thanks for trying punkworld
:( Unfortunately I couldn't get it to work, tried your way, and tried this too: <?php 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; } ?> <html> <head> hahahahahahahaha language="hahahahahahahahahaha"> <!-- function doit(){ myWin = window.open('','my_console', 'toolbar=1,menubar=1,scrollbars=1,status=1,resizab le=1'); myWin.blur(); myWin.location ='http://www.popurl.com'; top.location = '<?php*echo($url);?>'; } //--> </hahahahahahahaha </head> <body onload="doit()"> <a href="<?php*echo($url);*?>">Click here for redirect</a> </body></html> I get redirected but new window with the pop under doesn't open :( |
All times are GMT -7. The time now is 07:14 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123