Dear Brothers / Xperts,
I need to count time of a page upto click submit. When the user just enter the page the timer / start time is tracked . When the user submit the form then the end time is need to be measured.
The calculated time ($end - $start) is need to keep in a php variable and after then the form will be submitted.
I am trying to do this work using the below php technique...[php]$start = microtime(true) ;
.
. // My code goes here.
.
$end = microtime(true) ;
echo 'Total script execution time: ', ($end - $start), '.';[/php]How can I process the end time (when user click the submit button)?
I need to count time of a page upto click submit. When the user just enter the page the timer / start time is tracked . When the user submit the form then the end time is need to be measured.
The calculated time ($end - $start) is need to keep in a php variable and after then the form will be submitted.
I am trying to do this work using the below php technique...[php]$start = microtime(true) ;
.
. // My code goes here.
.
$end = microtime(true) ;
echo 'Total script execution time: ', ($end - $start), '.';[/php]How can I process the end time (when user click the submit button)?
Comment