You are here: Re: Help please redirecting frame pages using php « PHP Programming Language « IT news, forums, messages
Re: Help please redirecting frame pages using php

Posted by Erwin Moller on 06/27/05 15:52

Dynamo wrote:

> Hi
>
> My site uses frames and some of the frame pages are ranked higher in
> search engine rankings than the main page. When somebody clicks on the
> link it takes them to the frame page and they don't see my page as it
> should be viewed plus it displays a javascript error.

Frames are evil. :-)

>
> I need a way using php so that when the link is clicked on in either yahoo
> or lycos that it loads the main frame html page (not the subframe html)
> and that
> the subframe html page is loaded into the correct frame within the
> mainframe html page. Is this possible and how?

Yes, but I think you better use Javascript instead of PHP.
Your problem is this: People click on a hyperlink that points to a certain
html-file (or PHP file).
Then the page is fetched and delivered into the browser.
The browser should now check to see if the requested page is in a frame as
it should.

You can start your html-pages (or html generated by PHP) with certain checks
to see if there are frames present.

But try reposting this question to a javascript newsgroup for more
information. (comp.lang.javascript)

Regards,
Erwin Moller


>
> As ever any help greatly appreciated.
>
> TIA
> Dynamo

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация