Time issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
al3xandar
Forum Newbie
Posts: 15
Joined: Tue Dec 16, 2008 3:05 pm

Time issue

Post 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!
:(
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Time issue

Post by requinix »

Use sessions. Store the current time when you load the first page, check the time on the second page.
Post Reply