How to make a redirect to main page of the site from the frame?

Hello Everyone!

I can’t use header in application as I have to change lots of things if I do that , Because before it the data in that frame changing, so for this reason I decided to create javascript: (Toggle Plain Text)

PHP Code:


 if ($diff>30) { 
               include(
"del.php"); 
                            echo 
"<script type='text/javascript'>
                      top.location.href = 'index.php'; </script>"
;} 




but I having one critical problem as It works only on my local server not in main server, when I put it in real server it’s open that main page in the same frame!? SO can anyone expert short out my trouble or provide a suggestion that why It happened so? What should I do to avoid troubles.

View full post on Tycoon Talk

, , , , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved