chiefrokka Posted February 16, 2008 Share Posted February 16, 2008 I'm echoing the time so I should see the time change every 10 seconds (just testing) but nothing seems to refresh. I have php code at beginning of document though so not sure if that's why this won't work? Here's my code: <?php session_start(); require_once('config.php'); require_once('Functions.php'); if (isset($_SESSION['LoggedIn'])) { // do some stuff // grab variables from database } ?> <html> <head> <meta http-equiv="refresh" content="10" /> <title>test</title> <style type="text/css"> <!-- body { background-image: url(); background-repeat: repeat; } .style42 { color: #0066CC; font-weight: bold; } .style44 {color: #990000} .style45 { color: #990000; font-weight: bold; } .style46 {color: #0066CC} .style47 {font-size: 10px} --> </style> </head> <body> Link to comment https://forums.phpfreaks.com/topic/91392-meta-refresh-doesnt-seem-to-work/ Share on other sites More sharing options...
cunoodle2 Posted February 16, 2008 Share Posted February 16, 2008 Try changing to this.... <META HTTP-EQUIV="REFRESH" CONTENT="10;URL=<? echo $_SERVER['PHP_SELF']; ?>"> Or I think this MIGHT work.. <META HTTP-EQUIV="REFRESH" CONTENT="10;URL=#"> Link to comment https://forums.phpfreaks.com/topic/91392-meta-refresh-doesnt-seem-to-work/#findComment-468348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.