Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form validation for phone numbers

Status
Not open for further replies.

SPitt

Programmer
Joined
Sep 13, 2001
Messages
5
Location
US
Hey everybody!

Currently, I have a form with a phone number field. I have made sure that it only takes numbers in this field. However, that also means that it wont accept - or () or spaces. Is there a way around this?

Thanks!
 
you can build a javascript validation that includes those characters, or you can use a frontpage webbot to build it for you. Im not generally a front-page fan, but the form validation script it builds is impressive and fast. build the form in front page, run it on a frontpage enabled server, then copy the validation script from the source-code. there is an option under validation that allows you to list specific characters. I dont think that option is availabel in Dreamweaver yet.
Jon
 
Thanks Jon!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top