>- see footer for list info -<
And if you are on CF7, then you don't even cfform. All cfform validations
are now available server side via isValid() or <cfparam>.... so you could
use

<cfif not isValid("time",form.variableName)>
        Please enter a correct time <cfabort>
</cfif> 

Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Smyth
Sent: 28 September 2005 12:52
To: 'Coldfusion Development'
Subject: RE: [CF-Dev] time

>- see footer for list info -<
It'll also validate against 11:00PM format if you need it to 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch
Sent: 28 September 2005 12:18
To: Coldfusion Development
Subject: RE: [CF-Dev] time

>- see footer for list info -<
Would IsDate() work? Try seeing what a date with a messed up time portion
does.

If it does work, fake the date and the time will get checked.

<cfif IsDate("01/01/2000 " & YourDateVariableHere)>

Failing that, checking for a valid time should be fairly straight forward.

Or, go see www.cflib.org

Ade

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Swingewood
Sent: 28 September 2005 12:08
To: [email protected]
Subject: [CF-Dev] time


>- see footer for list info -<
Hello again....

Is there an  'istime(#variable#)'   function in coldfusion?

I just want to check that the user has entered a valid time on the form
rather than (fghjjgj) or some other rubbish. At present the code crashes if
the user does this ....

Regards - Paul

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<




_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<




_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to