Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Login</title>
- </head>
- <body>
- <h2 align = "center">LOGIN UTENTE</h2>
- <hr>
- <form id = "formDati" action = "check.php" method = "get">
- Utente: <input type = "text" name = "utente" id = "utente"><br>
- Password: <input type = "password" name="pw" id="pw"><br>
- <input type = "button" value = "login" onClick = "controlla();">
- </form>
- <script>
- function controlla(){
- utente = document.getElementById("utente").value;
- pw = document.getElementById("pw").value;
- if (utente == "" || pw == "")
- alert("Non hai inserito tutti i dati richiesti");
- else
- document.getElementById("formDati").submit();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement