I have created HTML form asking for username and password and I have one .txt file containing many username and password. I need to check wheather the entered username and password is present in .txt file using javascript.
Please help me out.
I have created HTML form asking for username and password and I have one .txt file containing many username and password. I need to check wheather the entered username and password is present in .txt file using javascript.
Please help me out.
First, you don't use any client side scripting (i.e. javascriptvin a browser) for security. Ever.
Next, don't save your password plaintext in a txt.
If you really want to create a secure login, try out an .htaccess (see this question Password protecting a directory and all of it's subfolders using .htaccess ) or a php form. I think an .htaccess would suit you better, as it's much easier to setup and doesn't require any coding.