Reply
Old 03-08-2010, 12:04 PM Validator
Novice Talker

Posts: 5
Name: Oscar
Trades: 0
I have this script to validate my form but I would only want numbers and special charactors on this Phone field.
On the Name field I would want letters and and special characters incase a person's name has Apostrophes in it.
Anyone can help me?
function gosubmit()
{
if(document.myform.firstname.value=="")
{
alert("Please Enter First Name.");
document.myform.firstname.focus();
return false;
}
if(document.myform.emergencyPh.value=="")
{
alert("Please Enter Your Emergency Contact's Phone #.");
document.myform.emergencyPh.focus();
return false;
}
}
Thanks
oasmat is offline
Reply With Quote
View Public Profile Visit oasmat's homepage!
 
 
When You Register, These Ads Go Away!
Old 03-09-2010, 11:15 PM Re: Validator
Novice Talker

Posts: 9
Name: GotLiveChat Employee
Location: Upstate NY
Trades: 0
Probably easiest way to find information on that would be to use Google for searches like:
javascript phone number checker
and
javascript first last name checker
Just in the 30 sec. for me to type those up there were plenty of examples...
gotlivechat is offline
Reply With Quote
View Public Profile Visit gotlivechat's homepage!
 
Old 03-10-2010, 02:45 AM Re: Validator
tripy's Avatar
Do not try this at home!

Posts: 3,600
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
http://articles.sitepoint.com/articl...s-javascript/3
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Validator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09126 seconds with 13 queries