Welcome Guest ( Log In | Join )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide. Want to reply to a topic, start a new one, or remove the advertising? Join today (always free).
      
 
Reply to this topicStart new topic
JavaScript Help, Javascript with a form
FlipLipshizts
post May 16 2008, 10:26 AM
Post #1


New Member
*
Posts: 3
OS: Windows 2007 XP



Hi!

I am creating a form for my website that simply asks for a Name, username and phone number. I am really good at writting html and have that part of it done. I have a basic understanding of javascript and want to have the javascript validate the form before it is submitted.

I want only letters in the name field. For the password I only want 8 characters total that starts with a letter, includes at least 2 numbers, and has no spaces. For the phone number I only want numbers.

Can anyone help me by putting me on the right track? Thanks!
Go to the top of the page
 
+Quote Post
Ax238
post May 19 2008, 11:28 AM
Post #2


TA Moderator
Group Icon
Posts: 1,276
From: SET HOMEPATH
OS: Windows 95/98/2000/XP/Vista



Hello,

What you want to do can be accomplished by writing javascript functions using regular expressions. Following are some references that may help you out:
JavaScript RegExp Object - Using Regular Expressions with Client Side Scripting
Core JavaScript 1.5 Guide:Regular Expressions - MDC

Regards,

Ax
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   1 / 907 17th June 2004 - 09:25 PM
Emory started - last by ditto
No New Posts   2 / 955 18th April 2005 - 02:29 AM
Jordan started - last by ssjmichael
No New Posts   3 / 307 1st May 2005 - 09:39 AM
momofmany started - last by jake6535
No New Posts   2 / 495 19th May 2006 - 03:44 PM
yaddie started - last by Mike-pxndx

RSS Time is now: 3rd December 2008 - 12:42 AM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.