This topic is locked

Redirect to another page don't work into iframe

8/30/2022 10:02:45 AM
PHPRunner General questions
A
alfonso authorDevClub member

I insert a form to add records into an iframe. I put in After record added:
header('Location: http://mydomain.com/');
exit();

But clicking the "add" button does nothing.
If I run the form outside of an iframe then it does redirect the page.

Sergey Kornilov admin 8/30/2022

You should not be using iframes with redirects together.