troubleshooting Question

PHP Target Main

Avatar of APD Toronto
APD TorontoFlag for Canada asked on
PHP
3 Comments1 Solution40 ViewsLast Modified:
Hi Experts

From a PHP Script, after certain conditions are met, how can I re-direct the user to a page on the main window from an iFrame?

For example, page1.php has an iFrame to page2.php. From page2.php how can I redirect the user to page3.php, but not in the iFrame, but instead of page 1.php

I amt trying the following, but not working.
if ($result['status'] == 'ERR'){
            $js_error = $result['msg'];
            require_once $supp_directory . 'view_supp-details.php';
        } else {
            header('Window-target: _top');
            header('Location: http://www.iwscc.ca/self-registration_thanks/');
   
        }
        
I have also tried _parent
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros