Ask a Question related to Macromedia ColdFusion, Design and Development.
-
CF Nut #1
Checking for a numeric value
I have a password textbox and I want to check to make sure that the value is
numeric. Is this something that I can do on the same page as my password
textbox or do I do my checking on the next page. Also would it look something
like this: <cfif (form.Zipcode) not numeric> Your zipcode must be numeric!!
CF Nut Guest
-
Numeric stepper
I have a Numeric stepper & values are set as 1 min & 10000 max. The problem is - In the control if I clear the value (There is no value in the... -
#25566 [Bgs]: Casting of strings to integers is flawed, no checking for non numeric chars.
ID: 25566 User updated by: Jared dot Williams1 at ntlworld dot com Reported By: Jared dot Williams1 at ntlworld dot com Status: ... -
#25566 [Opn->Bgs]: Casting of strings to integers is flawed, no checking for non numeric chars.
ID: 25566 Updated by: rasmus@php.net Reported By: Jared dot Williams1 at ntlworld dot com -Status: Open +Status: Bogus Bug... -
#25566 [Opn]: Casting of strings to integers is flawed, no checking for non numeric chars.
ID: 25566 User updated by: Jared dot Williams1 at ntlworld dot com -Summary: switch expressions seem to get cast to specific... -
How do I test if a value is numeric?
I have a Char(30) field in a database that has been used to store a variable length persons name and optionally a 2 decimal number (e.g. 12.34,... -
simontux #2
Re: Checking for a numeric value
You could use something like
<cfif NOT Isnumeric(form.Zipcode)>
Your zipcode must be numeric!!
</cfif>
simontux Guest



Reply With Quote

