[ciapug] times again

Dave J. Hala Jr. dave at 58ghz.net
Sun Dec 18 11:21:44 CST 2005


Yeah, I'm trying to keep it as simple as possible. 

I'm really interested in AJAX, I just haven't got to it yet. I've been
too busy digging ditches with a shovel to learn how to drive the back
hoe.

On Sun, 2005-12-18 at 11:09, Carl Olsen wrote:
> My date drop down control could be written so that it automatically updates
> the list of days according to which month and year were selected (I think
> that's what AJAX does, but I haven't looked at AJAX yet), but that's too
> much Javascript or page re-submitting for me.  I prefer to do the simple PHP
> date check function after the date has been submitted.
> 
> -----Original Message-----
> From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
> Of Dave J. Hala Jr.
> Sent: Sunday, December 18, 2005 10:03 AM
> To: carl-olsen at mchsi.com; PHP List
> Subject: RE: [ciapug] times again
> 
> Thats interesting. I'm thinking that if I do a listbox for hours,
> minutes and am/pm, I shouldn't have to do any validation.
> 
> 
> On Sun, 2005-12-18 at 09:50, Carl Olsen wrote:
> > Oops, sorry, I didn't read carefully.  You could use this same method with
> > time, but the validation would be different.
> > 
> > Carl
> > http://www.carl-olsen.com/
> > 
> > -----Original Message-----
> > From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On
> Behalf
> > Of Carl Olsen
> > Sent: Sunday, December 18, 2005 9:49 AM
> > To: ciapug at cialug.org
> > Subject: RE: [ciapug] times again
> > 
> > Here's the code for validating the input:
> > 
> > 	
> >
> if(!checkdate((int)(substr($date,4,2)),(int)(substr($date,6,2)),(int)(substr
> > ($date,0,4))) || strlen($date) == 0)
> > 		{
> > 			throw new exception("Invalid date.");
> > 		}
> > 
> > -----Original Message-----
> > From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On
> Behalf
> > Of Dave J. Hala Jr.
> > Sent: Sunday, December 18, 2005 9:14 AM
> > To: PHP List
> > Subject: [ciapug] times again
> > 
> > Anyone doing anything interesting when having users enter a time? For
> > example: "An end user would enter the time that an event starts".  I'm
> > thinking maybe a listbox for the hour, one for the minutes and one for
> > am/pm.   
> > 
> > Anyone have any comments on what works best?
> > 
> > :) Dave
-- 

Open Source Information Systems, Inc. (OSIS)
Dave J. Hala Jr., President <dave at osis.us>
641.485.1606



More information about the ciapug mailing list