Javascript help.

Discussion in 'Web Design and Development' started by giganten, Jul 8, 2007.

  1. giganten macrumors 6502a

    Joined:
    Jan 23, 2006
    #1
    Hi.
    I should make a form whit javascript.
    I should make an text-box that give you an alert if you dont write anything in the box or if you use numbers or . ; _ / or symbols like this.
    I will also make an box for numbers that should check so it is only numbers in the box.

    I did get the alert to work if you dont type anything in the box but dont now how to get the other things to work.

    Any one can tell me how it works or have some good guide I can read.
     
  2. epochblue macrumors 68000

    epochblue

    Joined:
    Aug 12, 2005
    Location:
    Nashville, TN
    #3
    Sounds like a job for Regular Expressions!

    Ahhhhh....how much I love RegEx's.
     
  3. giganten thread starter macrumors 6502a

    Joined:
    Jan 23, 2006
    #4
    I think i got my form to work now. But how should I do if I want to get a box that show that the person did everything right.
     
  4. angelneo macrumors 68000

    Joined:
    Jun 13, 2004
    Location:
    afk
    #5
    If he/she did everything right, shouldn't you forward the user to whatever he/she wants to do by filling up the form? Probably push the form data to another page that will execute backend code with it?
     

Share This Page