payam98 Posted February 28, 2013 Share Posted February 28, 2013 (edited) hi , i want one code for one of my pages , its php! i want when someone came to my page after 2 sec it'll transfer to another page and after 7 sec came back to the first page and stop ! i mean only one time work each day for one user ! and i found one code from one of my friend , but this code it works but when i added it to my index.php its not work like that! its work but when it came back after 7 sec to the first page it'll not stop , it'll continue again !! please tell me what should i do? this is the code for the first page: <?php @session_start(); @ob_start(); $url='re2.php'; if(!$_SESSION["zegersot"]) { $_SESSION["zegersot"]=true; echo <<<HTML <meta http-equiv="refresh" content="2; url= $url"> HTML; } ?> and this is for second page: <meta http-equiv="refresh" content="7; url= re.php"> Edited February 28, 2013 by payam98 Quote Link to comment https://forums.phpfreaks.com/topic/275059-php-transfer-code-problem/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.