| 1. |
Solve : Submitting on ENTER and hiding passwords in source code? |
|
Answer» I know this isn't the most secure login script, but I'd like to add one more step of security. Is there any way I can link the first part of the code to a public file instead of including the whole thing? Right now PEOPLE can just look at the source code to see my list of clients. The info isn't top secret, but I'd like one more layer of protection if possible. Javascript alone cannot hide usernames and passwords. Have you considered/tried using PHP? How would I implement that? Is that just saving the file as a text, then uploading it onto the internet with a public link?No, saving it as text means it's open for anyone to view, just like JS. See here: http://w3schools.com/php/php_post.asp Quote from: kpac on August 19, 2010, 03:23:30 PM No, saving it as text means it's open for anyone to view, just like JS. See here: http://w3schools.com/php/php_post.asp Thanks for the link. Looks pretty tough, but I'll give it a go. Do you have any info on how to make my form above recognize the PRESSING of ENTER? (keycode13???)Specifying an "action=" attribute should to the trick. |
|