Avatar of APD Toronto
APD Toronto
Flag for Canada

asked on 

PHP Target Main

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/');
   
        }
        

Open in new window

I have also tried _parent
PHP

Avatar of undefined
Last Comment
APD Toronto

8/22/2022 - Mon