Jump to content

[SOLVED] Eliminating Frames


DeepakJ

Recommended Posts

I have a html thing with a frame. The top has buttons controlling the site and the bottom has info. I get the redirection working but don't know how to get rid of the bottom frame. What happens is that the top frame gets stuffed with the second pages stuff an dhte bottom frame stays static. If I could eliminate the second frame when I redirect, it would work perfectly. Help would be much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/62925-solved-eliminating-frames/
Share on other sites

<?php if ($_GET['verif']){
echo '<script>window.location = "trueverif.html"</script>';
}
elseif ($_GET['sinput']){
echo '<script>window.location = "truesinput.html"</script>';
}
elseif ($_GET['linput']){
echo '<script>window.location = "truelinput.html"</script>';
}
elseif ($_GET['vdata']){
echo '<script>window.location = "trueviewdata.html"</script>';
}
elseif ($_GET['rdata']){
echo '<script>window.location = "reportdata.html"</script>';
}
?>

This is my redirection code.

why use frames?

 

I hate frames and they make sites a pain in the ass. Is there a particular reason for using frames?

 

If you simply want to have a "layout" where you have one nav section appearing on each page and a footer, use includes. If this is your objective, post back and I can show you how I do it.

 

Nate

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.