472,328 Members | 1,072 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Need username/password setup help

8
I'm adding some pages to a website for a client and one of the options the client wants is for his employees to be able to login into a separate page for employees only, where they can retrieve information such as monthly schedules, etc. The person who created the website originally had made a link that would take you to that page. When you click on the link it prompts you to enter a password, but when you're entering the password you can actually see the words you're typing in.

What I need help with is: for each employee to be able to create a username and a password; and when typing in a password I don't want the letters to be visible. Are there premade codes for this somewhere?

If creating a separate username and password for each employee is dealing with too much (such as creating databases) then if somebody could help me with at least creating one same password for every employee to be able to use. The client wants this page (with company info) to be stored on his own server at his main office location.

The code that is currently present is: <a href="staffsite.html" onClick = "whereTo();return false">

Thanks in advance,
AR
Aug 23 '06 #1
4 4519
iam_clint
1,208 Expert 1GB
use a form and use <input type="password"
instead of <input type="text"

now that thats said, Javascript would be the last way you would want to do username and password logins -- first of all if its client side (javascript) there is not authentication with the server but local authentication whichs means that they can probably view the source of the page and use any of the predetermined logins made by whoever, the way i would go would but with a sql server and a server side scripting language such as PHP or ASP, If this is not an option you may want to look into some way of encrypting the data with possibly MD5 or something of the such.
Aug 23 '06 #2
arad
8
Here is the code that I have for the login icon, it was made by another person who originally created the website (but this website was never up on the internet yet). I'm not sure which platform the client has for his server that he has at his main office location.

function whereTo()
{
var magic_word = prompt("Enter Password","");
if(magic_word == "password")
{window.location = "index.html";}
else if (magic_word == "letmein")
{window.location = "staffsite.html";}
else
{window.location = "index.html";}
}

Then later in the code there's this:
<a href="staffsite.html" onClick="whereTo();return false"><img src="images/tooth.gif" width="51" height="72" border="0"></a>

Is there any help you could give me with this code that I already have?

And if I would need to use a server side scripting language such as PHP or ASP are there codes out there pre-made that I could use (and just revise them)?

thanks,
AR

use a form and use <input type="password"
instead of <input type="text"

now that thats said, Javascript would be the last way you would want to do username and password logins -- first of all if its client side (javascript) there is not authentication with the server but local authentication whichs means that they can probably view the source of the page and use any of the predetermined logins made by whoever, the way i would go would but with a sql server and a server side scripting language such as PHP or ASP, If this is not an option you may want to look into some way of encrypting the data with possibly MD5 or something of the such.
Aug 24 '06 #3
iam_clint
1,208 Expert 1GB
There are server side codes for a login script, easy to find on google example search would be ASP login script, another PHP login script..


as to the javascript those passwords are obviously visible just in view source

password takes you to index
letmein takes you to staff

infact you could type www.whateverwebsite.com/staffsite.html

and you would be in without even finding the password -- this is not a secure way of doing it...

you can make the html document itself password protected and not use the javascript merely have a link to it then it will prompt you with a password, if incorrect it gives you access denied.
Aug 24 '06 #4
arad
8
You mentioned that I can have the html document itself password protected, and not use javascript. How would I go about doing that? Is it complex?

Thanks in advance.

There are server side codes for a login script, easy to find on google example search would be ASP login script, another PHP login script..


as to the javascript those passwords are obviously visible just in view source

password takes you to index
letmein takes you to staff

infact you could type www.whateverwebsite.com/staffsite.html

and you would be in without even finding the password -- this is not a secure way of doing it...

you can make the html document itself password protected and not use the javascript merely have a link to it then it will prompt you with a password, if incorrect it gives you access denied.
Aug 24 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript...
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can...
5
by: Learner | last post by:
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one...
11
by: Matthew | last post by:
Ok let me try to explain this as good as I can. I am creating this application where it contains a userlogin class. The user logs in before...
3
by: bb nicole | last post by:
I have did the company login and job post which means that company can post the job after they login in my webpage.. I had set...
2
by: muchexie | last post by:
i have two scripts that are not running to reset a password that has been forgotten and the other to change old password. here are the scripts. ...
5
eragon
by: eragon | last post by:
I am making a password script, i have most of it done, ill show you, but i hit a brick wall.... lol, I have it so when you log in it takes you to...
2
bmallett
by: bmallett | last post by:
I am getting the following error: Error Type: ADODB.Command (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.