Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.