| View previous topic :: View next topic |
| Author |
Message |
aicirt
Joined: 26 Jun 2006 Posts: 3
|
Posted: Mon Jun 26, 2006 4:20 am Post subject: error check |
|
|
i have a system that allows users to clock in and out (ie before work and after work). i can error check for the time whether it is valid (ie is the clock out time greater than the clock in time). however if i wnat the users to clock out multiple times (ie before work, after work, before lunch, after they lunch), then i assume i need to use a for loop to do the checking right?
anyone got any guide for me?? |
|
| Back to top |
|
 |
|
|
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Mon Jun 26, 2006 11:58 am Post subject: Re: error check |
|
|
Hi and welcome to DEVPPL.
If this should be for controling employees, I don't recomend JavaScript because it's not running from the server, but from the users computer. So it's very easy to manilpulate the time and cheat.
I recomend that you use PHP or ASP for this and store all the times in database. It's harder to cheat then. (But I would still be able too , can I work for you?)   |
|
| Back to top |
|
 |
aicirt
Joined: 26 Jun 2006 Posts: 3
|
Posted: Tue Jun 27, 2006 1:27 am Post subject: Re: error check |
|
|
well i have to do this in javascript... it's not my choice to make...  |
|
| Back to top |
|
 |
|