Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2005, 12:23 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: Charlotte, NC
Posts: 58
ken71683 RepRank 0
Default Simple problem

I'm new to ASP and am trying to validate a txt field on a form that I am making for my website. I'm using isNumeric to determine if all of the characters in a field are numbers and it is working sort of. Here is what it is doing: example) I submit the numbers "123" and it passes. "123abc" it fails. "123-" it fails. "1-3" it fails. "-123" it passes. Why would it pass a "-" if it is in the first spot. I can find no other character that will pass, why will this one and why only in the first spot? Very confused... Please help.
__________________
Ken
Reply With Quote
  #2 (permalink)  
Old 02-04-2005, 01:30 PM
Easywebdev's Avatar
WebProWorld Veteran
 

Join Date: Apr 2004
Posts: 328
Easywebdev RepRank 1
Default

-123 is numeric. It is a negative number.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0