Reply to Re: date processing needed in form

Your name:

Reply:


Posted by Jerry Kita on 01/04/06 04:38

Sue wrote:
> Hello -
>
> I need to create a form that allows the user to select a Month, Day and
> Year. I am also new to PHP and am wondering if there is a way for me to
> display the contents of the Select list box (for the Day) based on the Month
> that is selected (and Year), so that the valid number of days for the month
> (& year?) displays. For all of our other forms, we use CGI to handle our
> standard forms validation, and was hoping to handle more complex validation
> within PHP prior to sending the entire contents of my form to our standard
> CGI validation routine. I know that I could use the Checkdate function once
> the entire date is selected, but thought there might be an easier/more
> efficient way of handling this and also not sure how to reference Checkdate
> prior to Submitting my form to the CGI routine. I also was not sure if this
> was something that is handled easier using Javascript? Any help/examples,
> etc. would be greatly appreciated!
>
> Thanks!!
> Sue
For what it's worth I use JavaScript for validation prior to the form
being submitted. It's faster and doesn't use any network resources. If
you do validity checking at the browser using JavaScript ... then when
the form is submitted I'd let it go straight through to your standard
forms validation program ... I wouldn't even involve PHP.

--
Jerry Kita

http://www.salkehatchiehuntersville.com

email: jskita@attglobal.net

[Back to original 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

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