Skip site navigation (1) Skip section navigation (2)

Re: Redirecting

From: Steve Bern <sabern(at)eshell(dot)net>
To: Richie <dugganr(at)student(dot)cs(dot)ucc(dot)ie>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Redirecting
Date: 2001-02-28 22:19:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
One design thought:  Avoid frames.  I know they're appealing because
they provide persistent navigation, but using PHP, which gives you the
ability to seperate HTML from code, will allow you the option of easily
adding a naviagion banner or side bar that is simply dynamically added
to each page request (in essence, frames without frames!).  The
need for frames, IMHO, is largly trumped by dynamic content generating
languages like PHP.  The only place I can think to use them is if you do
not have control over all the site's content... But most sites aren't
like this.  If you want to know why not to use frames, search google
with the phrase "why to  avoid frames" and you'll get a lot of specific

Generally, you should create the perfect navigation panel, and then just
have your php page include this at the start.  Just like a common footer
message you include echoed on every page...


On Wed, 28 Feb 2001, Richie

> Hi
> I am using PHP, PostgreSQL and the Apache web server. I have a login.php
> script working which checks if the login is correct. If so it will
> redirect you the main page, which is search.html like so :
> if ( $feedback ==  ' SUCCESS - You Are Now Logged In ')
>         {
>             echo '<FONT COLOR="BLUE"><H1>You will now be redirected to the
> 	          Auctioneer Main Page
>             printf("<META HTTP-EQUIV=\"REFRESH\" CONTENT =
>               \"5; URL=\">");
>             exit;
>         }....
> This works grand but my problem is that I am using frames and I want the
> value of TWO frames to change once the user has been confirmed, the "main"
> frame which which will contain search.html and the "options" frame which
> will contain userOptions.html. Here is what I currently have:
>             if (everything OK)
>             {
>             printf("<A
>             HREF=\"\"
>             onClick=\"window.self.location =
>             ''\"
>            target=\"options\">Go to main page</A>");
>            exit;
>            }...
> Instead this places a link which the user must click in order for the 2
> pages to be loaded simultaneously. I think that it would be much better if
> the 2 pages loaded up simultaneously once the user has been confirmed
> Can anyone tell me is this possible?
> Thanks a lot in advance!
> Richie
> =========================================================
> Richie Duggan
> Computer Science IV
> University College Cork
> Eamil : dugganr(at)student(dot)cs(dot)ucc(dot)ie   richie_dug(at)yahoo(dot)com
> Homepage :

In response to

pgsql-php by date

Next:From: Andy ArledgeDate: 2001-03-01 03:08:37
Subject: novice question
Previous:From: RichieDate: 2001-02-28 15:00:50
Subject: Redirecting

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group