Archive of:
CF-Talk
Cold Fusion - Technical
home
24 hour view
quick stats
weekly updates
all tallylists
corporate solutions
archive your favorite
help / feedback
About Cold Fusion :
product's home
product's list home
|
|
Archived TallyList / CF-Talk:
Subject: Fw: IsNumeric Function
Bill Davidson (25p/+0r) Posted: Friday 15 Dec 2000 This post: 32 views, +0 rating
Maybe its a operator precedence problem. Try doing if (IsNumeric(...) is false) or (...) or (...).
-Bill /intraget ----- Original Message ----- From: Greg Wolfinger <GWolfinger@compuvisions.net> To: CF-Talk <cf-talk@houseoffusion.com> Sent: Friday, December 15, 2000 11:36 AM Subject: IsNumeric Function
> Hey Guys/Gurls: > > I am trying to do some server side validation for a phone number, but I am running into an odd problem. I split the phone number entry form into three textboxes the first one for area code (ie must be 3 numbers) and then the two parts of the phone number (ie must be 3 numbers and then must be 4 numbers). I check to make sure the length of each textbox is correct and then I try to check if they are numeric, however it will throw an error. > > My code looks something like this: > > <cfif not IsNumeric("attributes.custPhone1") or not IsNumeric("attributes.custPhone2") or not IsNumeric("attributes.custPhone3")> > <cfset attributes.error = attributes.error & "Please enter a valid phone number.<br>"> > </cfif> > > The strange part is that when I take out the not IsNumeric() statements for the first two form variables it works fine. Ideas??? > > -Greg > > >
Similar Subject Line Posts (+/- two weeks of this post)
| Fw: IsNumeric Function | 15 Dec 2000 (this post) |
(32 v/ +0 r) |
| Send a reply to the CF-Talk list! |
 |
NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!) |
|