Login Details with validation

(’ Hello there…!’)
I am doing login details project, I write the code but I need to make my login information be valid with any letter that telling success if I type the write information or failed otherwise I need help please… ? my code is below —>

<!DOCTYPE html>

  <p>Enter your usename and password...</p>



    <p><label for="login">Login:</label><br/>
    <input type="text" id="login" name="login" size="20"></p>

    <p><label for="password">Password:</label><br/>
    <input type="password" id="password" name="password" size="20"></p>

    <button type="button" name="form" value="button">Login</button>

    <input type="button" value="Login" id="submit" onclick="validate();" />



Hi @Dode83!

It helps others in the forum if you post what you have tried. Even if it is flat wrong there are tons of experienced developers who can help steer you in the right direction.

1 Like

Hello jwilkins.oboe :grinning:
Do I need to provide more info regarding to my question ?

You reference a function here but we have no clue what it is doing.

It would be nice to see that code

1 Like

Yeah, that function has to display a letter telling me that the validation of inserted info is success or failed. Am I correct :blush:

I am more interested in the validate function than the onclick function. Without seeing your code for the validate function there isn’t a whole lot we can help you with.

What have you written for the validate function?