validate more than one

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ojnoka
    New Member
    • Jul 2008
    • 1

    validate more than one

    Hi,
    I am a newbie. I don't know javascript. I use the free javascripts and try to understand them.
    I have a javascript now, to validate username and password. I paste it below. My question now. Is it possible to let it validate more than one username and password?
    For example text3 and text4?

    [HTML]<form>
    <p>ENTER USER NAME :
    <input type="text" name="text2">
    </p>
    <p> ENTER PASSWORD :
    <input type="password" name="text1">
    <input type="button" value="Check In" name="Submit" onclick=javascr ipt:validate(te xt2.value,"free ",text1.value," javascript") >
    </p>

    </form>[/HTML]

    Thank you in advanced!

    ojnoka
    Last edited by gits; Jul 17 '08, 10:58 AM. Reason: added code tags
  • vikas251074
    New Member
    • Dec 2007
    • 198

    #2
    What type of validation do you need?

    Input validation ? or validation from data table.

    Regards,
    Vikas

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Isn't that just a matter of passing the text3 and text4 values where the text1 and text2 values are being passed?

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        of course ... this is possible, it is just a matter of the the implementation of the validation function ... just post the code of the validate()-function ... so we might have a look at and give you some hints on how to adapt it for your needs.

        kind regards

        Comment

        Working...