• I am trying to add a simple login for a protected page and it works fine except one problem. It opens the WHILE site in the page instead of just the protected page. How can I get it to return to just the page and not the whole site?

    I have this code on the page which embeds the sign-in page.

    <html>
    <body>
     <center>
    <iframe src ="https://www.mysite.com/login.htm" width="100%" height="350" target="_blank">
      <p>Your browser does not support iframes.</p>
    </iframe>
     </body>
    </html>

    And I have the script redirect them to this page if the login is correct.

    https://www.mysite.com/?page_id=252

    It works, but opens the whole site within the page. Does anyone know how to fix this?

    Thank you.

  • The topic ‘Open in same page problem’ is closed to new replies.