Login Page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
PHP_mySQL__Newbie
Forum Commoner
Posts: 29
Joined: Fri Aug 12, 2011 5:40 pm

Login Page

Post by PHP_mySQL__Newbie »

I have 10 datasheets (csv format) that I want to post on my website but I don't want them to be accessed by anyone else.
Now I am trying to create a login page to secure the files. The code that I used doesn't seem to be very safe. Can someone give me an idea how to make a safe and secure login page? What language should I preferrably use?

Code: Select all

<head>
<title>Please type your Username and Password... </title>
<script language="JavaScript" type="text/JavaScript" src="login.js"></script>
</head>
<body bgcolor="#eeeeee">
<form>
<br>
<center>
Username: <input type="text" name="username" style="background:#bfbfbf;color:#212121;border-color:#212121;" onFocus="this.style.background = '#ffffff';" onBlur="this.style.background = '#bfbfbf';">
<br>
Password: <input type="password" name="password" style="background:#bfbfbf;color:#212121;border-color:#212121;" onFocus="this.style.background = '#ffffff';" onBlur="this.style.background = '#bfbfbf';">
<br>
<input type="button" value="Login" onClick="Login(this.form);" style="background:#bfbfbf;color:#000000;border-color:#212121;" onMouseOver="this.style.color = '#404040';" onMouseOut="this.style.color = '#000000';" onFocusr="this.style.color = '#404040';" onBlur="this.style.color = '#000000';">
</center>
</form>
</body>
</html>



User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Login Page

Post by social_experiment »

PHP_mySQL__Newbie wrote:Can someone give me an idea how to make a safe and secure login page?
Search the security section of the forum; the subject has been covered in the past
PHP_mySQL__Newbie wrote:What language should I preferrably use?
One which you are proficient in. Javascript is a client-side language which means it can be disabled so any security measures you implement using it can be circumvented with ease. Your option is something server-side, and judging from the name you are using, i'd say go with php. (That's also the language covered by the various previous secure login threads.)
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply