Posted by Michael Fesser on 02/20/07 18:15
..oO(Johannes Vogel)
>It's not as trivial as you wrote for testing how many days a month has -
All it needs is a test for leap years, which is a very simple algorithm.
>and you have to check the date again after sending to the server.
You _always_ have to check _everything_ on the server. Client-side
validation can be nice to have, but it's completely unreliable.
>Perhaps with AJAX it's smarter to program.
Not in this case. It would require an additional but useless HTTP
request and you still have to validate again on the server.
Micha
Navigation:
[Reply to this message]
|