Jump to content

How to Refresh a web page 1 time


md7dani

Recommended Posts

Hi first post here 8),

Need som help with a problem. I Want to refresh a page 1 time from another page. I have members.php from where I want to refresh topframe.php. This will do the job but can't get it to work:

 

echo '<meta http-equiv=Refresh content="0;url=topframe.php?reload=1">';

 

Then I need to fetch the variable reload with  if(!isset($_GET['reload'])) {...

I've tried to put the code  echo '<meta http.... in members.php but then I get a refresh on the page a miljon times :o.

Where do I put this code to make it work?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/182057-how-to-refresh-a-web-page-1-time/
Share on other sites

you saying you tried this?

 

if(!isset($_GET['reload'])) {
   echo '<meta http-equiv=Refresh content="0;url=topframe.php?reload=1">';
}

 

think I need to target the code. Now it reloads the page topframe.php in its own frame, not so good ;D. topframe.php is in mainFrame1 and members.php is in rightFrame. How do I insert 'target="mainFrame1"' in the meta tag?? Then it should work I think.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.