Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) { $parts = explode("/

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) { $parts = explode("/

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, "/") > 0) { $parts = explode("/

Re: [PHP] Checking a date for validity

2005-09-07 Thread Ben
Todd Cary wrote: My need has to do with claimants for class action lawsuits, so I guess having drop downs for months, days and years is one answer. Drop down menus can certainly make your life easier, especially if you're dealing with an international audience and wondering what order to put

RE: [PHP] Checking a date for validity

2005-09-07 Thread Chris W. Parker
Todd Cary on Wednesday, September 07, 2005 3:39 PM said: >/* Is date good */ >function is_date_good($date) { > if (strtotime($date) == -1) { >$retval = 0; > } else { >if (strpos($date, "/") > 0) { > $parts = explode("/", $da

Re: [PHP] Checking a date for validity

2005-09-07 Thread Todd Cary
Jordan Miller wrote: writing a parse script is okay, but it will be very difficult to always ensure they are inputting it correctly. I recommend putting a popup calendar next to the input field. If the field is automatically populated in this way you will have a much easier time parsing it

Re: [PHP] Checking a date for validity

2005-09-07 Thread Jordan Miller
writing a parse script is okay, but it will be very difficult to always ensure they are inputting it correctly. I recommend putting a popup calendar next to the input field. If the field is automatically populated in this way you will have a much easier time parsing it correctly. I can't re