refreshing frame with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stribor
Forum Newbie
Posts: 12
Joined: Fri Apr 01, 2011 10:48 pm

refreshing frame with php

Post by stribor »

I have page that contains 3 frames.(each frame different html or php file)
In 3rd frame i have html form that i process.
After I process form in 3rd frame I would like to refresh frames 1 and 2.
I tried

Code: Select all

header("refresh:1;url=pagewithFRame1.html");
but this keeps splitting 3rd frame into another frame.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: refreshing frame with php

Post by Christopher »

You can do this with javascript in the for frame by setting parent.frame_name.location.href="http://mysite.com/pagewithFRame1.html"
(#10850)
Post Reply