Re: Redirecting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
hits.

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

Steve

On Wed, 28 Feb 2001, Richie
wrote:

> 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=http://level424.ucc.ie/project/search.html\";>");
>
>             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=\"http://level424.ucc.ie/project/userOptions.html\";
>             onClick=\"window.self.location =
>             'http://level424.ucc.ie/project/search.html'\"
>            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
> WITHOUT THE USER HAVING TO CLICK A LINK.
>
> Can anyone tell me is this possible?
>
> Thanks a lot in advance!
>
> Richie
>
> =========================================================
> Richie Duggan
> Computer Science IV
> University College Cork
> Eamil : dugganr@xxxxxxxxxxxxxxxxx   richie_dug@xxxxxxxxx
> Homepage : http://student.cs.ucc.ie/01/dugganr/index.html
>






[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux