Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8672267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:09:40+00:00 2026-06-12T19:09:40+00:00

I am loading a form in an overlay. The overlay has a separate controller

  • 0

I am loading a form in an overlay. The overlay has a separate controller and action to the page that invokes the overlay.

On form submit, if successful, I simply want to reload the referring page that the overlay was loaded from. I can get the referring page to load, but it places the content inside the overlay.

header("Location: www.example.com", true, 302);

does not work.

Using the URL helper like this:

$url = $_SERVER['HTTP_REFERER'];
redirect($url);

Also does not work. Every time it loads in the overlay. I am sad because of it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:09:41+00:00Added an answer on June 12, 2026 at 7:09 pm

    Unfortunately, using header to refresh/redirect will only reflect the changes in the container that is displaying the PHP page.

    To refresh the parent page (i.e. the page that is displaying the overlay itself), you will need to do it on the client-side using Javascript. These questions should help you get on the right path:

    • Redirect parent window from an iframe action
    • PHP "header (location)" inside IFRAME, to load in _top location?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form loading on a page that loads with an onclick event
im loading a external page from flowplayer overlay and im trying to submit a
I'm trying to use a loading overlay on top of a Windows form that
I have a form loading inside my page and there is a button out
I have a Jquery Mobile page into which I'm loading a form via AJAX.
On my web page I am loading an editing form asyncronously with jQuery.get and
I'm loading a page in an iframe colorbox. On this page there's a form
I want to sort a DataGridView by a column when the form loading, but
I want to have a loading form showing up while the main app connects
When my database is opened, it shows a form with a loading bar that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.