Page 1 of 1

Time issue

Posted: Tue Mar 24, 2009 7:17 pm
by al3xandar
I would like to calculate time interval needed by user to submit a from, and I would like to do it PURELY by using PHP, although I know it could be done painless with JavaScript...

For example, time interval from the moment in which user loaded the page and the moment he submited the form. PHP only, pls!
:(

Re: Time issue

Posted: Tue Mar 24, 2009 7:26 pm
by requinix
Use sessions. Store the current time when you load the first page, check the time on the second page.