Kodak07 Posted April 23, 2007 Share Posted April 23, 2007 [move]n00b alert[/move] I am trying to see how long it takes to get from one page to another on the first page i have: //page1 <?php $time = microtime(); ?> How do i pass this variable to page2.php using the POST variable? Quote Link to comment Share on other sites More sharing options...
tarun Posted April 23, 2007 Share Posted April 23, 2007 I Would Have Thought Either Sessions Or Cookies Would Be Better Quote Link to comment Share on other sites More sharing options...
Kodak07 Posted April 23, 2007 Author Share Posted April 23, 2007 how do i load it into session and take it out on the next page? Quote Link to comment Share on other sites More sharing options...
Mr. R Posted April 23, 2007 Share Posted April 23, 2007 put.. <?php session_start(); $time = microtime(); $_SESSION['time'] = $time; ?> This will set $_SESSION['time'] to $time. on the next page you just put.. <?php session_start(); echo $_SESSION['time']; ?> On any page that you want to use sessions, you must have session_start(); at the top! Quote Link to comment Share on other sites More sharing options...
Kodak07 Posted April 23, 2007 Author Share Posted April 23, 2007 Thanks Quote Link to comment 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.