Page 1 of 1

Login Page

Posted: Sun Oct 30, 2011 12:54 pm
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>




Re: Login Page

Posted: Mon Oct 31, 2011 5:52 am
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.)