Sessions Question

From: Date: Sat, 28 Jul 2001 23:36:11 +0000
Subject: Sessions Question
Groups: php.general 
Request: Send a blank email to php-general+get-60082@lists.php.net to get a copy of this message
Hope I can explain this. I want to have scripts that will automatically refresh a page entered by the user. So a form will have URL to refresh, seconds to refresh and title of page. I want the page to continually refresh every X seconds. I think I would need two pages that go back and forth between each other. Here is what I have for the first script/page after the form. I don't know what to do after this on the second page in order to pass the variables on to it. Thanks for any help. Jeff Oien ----------------------------- <? session_start(); session_register("$refresh"); session_register("$seconds"); session_register("$title"); if (!$refresh || !$seconds) { echo "Please choose a URL to Refresh and Seconds to Refresh."; } print "<html> <head> <meta http-equiv=\"refresh\" content=\"$seconds;url=refresh1.php\"> <title>$title</title> </head> <frameset cols=\"100%\" rows=\"100%\"> <frame name=\"Frame 1\" src=\"$refresh\" scrolling=\"auto\"> <noframes> If you can see this message you are using a browser that is incapable of displaying frames.</noframes> </frameset> </html>;" ?>

« previous php.general (#60082) next »