Log in

View Full Version : Have Multiple Redirects that need to go into a page with frame(s)



Tau'ri
02-28-2007, 01:38 AM
I'm frustrated trying to figure this one out. :confused: The following code works fine as a stand alone file, but lists the URL that a user was redirected to.

<?php
/** * Place in a blank PHP page * **/

// Change to the URL you want to redirect to

if ($r==1) {
$URL="https://www.ezinfocenter.com/MySFIid.999/FREE";
} elseif ($r==2) {
$URL="https://www.ezinfocenter.com/MySFIid.999/GD";
} elseif ($r==3) {
$URL="https://www.ezinfocenter.com/MySFIid.999/IAHBE";
} elseif ($r==4) {
$URL="https://www.ezinfocenter.com/MySFIid.999/VCL";
} elseif ($r==5) {
$URL="https://www.ezinfocenter.com/MySFIid.999/VNU";
} elseif ($r==6) {
$URL="https://www.ezinfocenter.com/MySFIid.999/Department.vstore?id=190";
} else {
$URL="https://www.ezinfocenter.com/MySFIid.999/";
}

header ("Location: $URL");
exit();

?>Is there any way that the above URLs can be masked by the frameset and frame tags in another or same file and goto the correct URL given in above example while retaining in the navigation bar something like http://www.mydomain.net/somedirectory/index.php?r=x?

Jeff Hansen (TeamJH)
:sword: CHARGE :sword: