You are here: Re: month and day of month edit fields « PHP Programming Language « IT news, forums, messages
Re: month and day of month edit fields

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация