English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

my homepage has a link, and before they could see the next page of that link, i want them to input a password(prompt box). and if the password is wrong, they cannot see the next page. how can i do that? what function will i use pls help me

2007-04-05 01:18:33 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

JavaScript is not the best way to do this, because anyone could visit your page, view the source and determine the password. You'll need to use a server side scripting language like PHP or ASP to secure the passwords.

2007-04-05 03:48:44 · answer #1 · answered by Pfo 7 · 0 0

Ditto Pfo (above): you could *write* an external javascript of your own, link to it in the section of your form page, like this:

...
...other stuff...




...stuff...


and have form submission depend on verification by your script routine... and you could even try your best to encrypt a password in the script routine... but someone sneaky could get into the script routine and find your password - after all, it's getting loaded into the *user's* memory when it executes, and the source address of the script is visible in the source page of your web page, anyway!

2007-04-05 11:49:33 · answer #2 · answered by fjpoblam 7 · 0 0

This is surely not a job you should do with Javascript. This process should be done on the server.

2007-04-05 11:18:46 · answer #3 · answered by Smutty 6 · 0 0

I have same problem (Sucure Password Protection) FREE at www.authpro.net
www.bravenet.com NOT SUCURE

2007-04-05 09:02:01 · answer #4 · answered by Unknown 1 · 1 0

there is no premade function in JS regarding your problem. use JAVA it is more secured.

2007-04-05 08:48:10 · answer #5 · answered by Lorenz Ras 1 · 1 1

fedest.com, questions and answers