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? Link to comment https://forums.phpfreaks.com/topic/48331-solved-time-difference/ 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 Link to comment https://forums.phpfreaks.com/topic/48331-solved-time-difference/#findComment-236302 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? Link to comment https://forums.phpfreaks.com/topic/48331-solved-time-difference/#findComment-236310 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! Link to comment https://forums.phpfreaks.com/topic/48331-solved-time-difference/#findComment-236325 Share on other sites More sharing options...
Kodak07 Posted April 23, 2007 Author Share Posted April 23, 2007 Thanks Link to comment https://forums.phpfreaks.com/topic/48331-solved-time-difference/#findComment-236330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.