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

I have a site and I for some people to get into a specific part of the site, they need a password (which is all the same). I give them the password, and only the pepo that know the password can see it? Does anyone have an HTML code for this?

2006-10-14 21:38:13 · 3 answers · asked by DookieCookie 4 in Computers & Internet Internet

3 answers

Dificult as all the html (including the password) can be seen by viewing the source code

You are better off doing this with javascript as stuff can be more easily camoflauged

To do this properly you need a languagle running on the web server - people cannot then see the password by viewing the code

2006-10-14 21:45:41 · answer #1 · answered by cool_clearwater 6 · 0 0

Hey,

Your web hosting control panel should have a password protection option for the directories on your site.

That will be the best option. Simply set a password for the folder you want and give that password to your friends. When people visit that page, it'll first prompt for the password FROM THE SERVER END and not from your individual HTML / PHP page...

If they enter the password correctly, they can view the contents... Or else, they'll be kicked off by the server! lol

If your hosting provider doesn't give you this option, consider building a PHP page and host it. Create a MySQL database and create two rows. 1 as username and 1 as password. Store any desired username and pwd here...

Now, use any popular web development program to script your PHP file. Use the password option to link to your database on your site and prompt the program to retrieve the username and password from the database. IF it matches, people are in... Or else, they'll be redirected to a different page specified by you!

These options are available on the user interface of most clients like dreamweaver, coffeecup, etc... You just need to click and customize. Like, typing in your database name, username, pwd, etc... You don't have to be a good developer!

If you're still struck up with this issue, let me know and I'll develop one for you! lol

Cheers..

2006-10-15 04:50:21 · answer #2 · answered by audioHOLIC 2 · 0 0

The HTML to create a password box is:.

All the best

Cheers

2006-10-15 04:44:11 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers