Link to home
Start Free TrialLog in
Avatar of tancy1
tancy1

asked on

how to create login in website?

what do i need to do if i want to create a website for the user to login in?
Avatar of vippx
vippx

Hi,

Could you please give us more details as in what technology you intend to use, what Web Server or what OS you are planning to deploy and the level of security u need, and that would have experts here help you. In case you havent decided on this yet, to start with you can look up ASP .NET which has highly simplified the development  of authentication mechanisms.

Avatar of tancy1

ASKER

i planning to use html. can i know the concept"?
Still, at least webserver would be nice to know, and OS wouldn't be too bad either.

An easy way if you use Apache is to use htaccess, I suggest following this site:

http://apache-server.com/tutorials/ATusing-htaccess.html

Tancy1,

Html alone will not do what you want. HTML is nothing more than a standard for formatting the display of htm/html documents or websites. Html does nothing more than describe the position of text and pictures on a webpage (of course also creates hyperlinks). As vippx asked, we need to know what type of webserver your using. If your using Microsoft's IIS, then it would be easiest for you to use ASP (active server pages), and if your using a webserver like Apache then you should use PHP or CGI to handle the server-side processing, which will handle logins, account setup, ect..

HTML only formats stuff on webpages, it has no ability to process information and determine if a password or username is valid.

Mugman
Hi,
If you are using the apache web server then you can put and .htaccess file in the directory which will simply put the authentication check for the whole directory which will be accessed.

Gourav Jain
Though its not clear from your question, it seems that you want individual users to login to your site with different username/password. To do so, you will need to use a server side scripting language such as ASP/Php/Perl etc in combination with a database such as Access/SQL Server/MySQL/Plain text as its back-end.

Login scripts written in various languages are easily available on the net. With a little bit of search you can easily find them. But be warned, it can be difficult for you to implement even with our help, if you have no prior experience with a scripting language and awareness of database concepts.


If you want just one username/password globally for all your site visitors, follow gaurav's suggestion given above. Depending on your web server you are using, it can be done difeerently. For that you have to tell us about your web server software.


If you find all this difficult, you can implement a very primitive kind of (easily bypassable) security even with client side scritpting (JavaScript).


Please let us know what exactly you want.
A good sample code for MySQL and ASP.Net can be found here: http://www.brinkster.com/CodeBank/ShowSnippet.aspx?n2129
ASKER CERTIFIED SOLUTION
Avatar of terminator_III
terminator_III

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi there
   As u have told that u want to build a login pagein HTML, here is a code for it. But for ur information, HTML only provides us a Interface.So u have to decide which language u want to use to implement it. You can use Asp or asp.net and SQL server for DB. Anyway i have just sent u the interface which is in HTML. so there is no code implemented yet for login. You have to check where it is valid user or not,whether the password entered matches or not etc. Here the HTML code which i have sent is very simple u can use logo and stylesheet to give it good look.Let me know which language u want to use for web page developemnt.

Sweety

<html>
<head>
</head>
<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0>
  <table width=100% style="cursor:default;" height=46 cellspacing=0 cellpadding=0>
   <tr>
     <td align=left style="vertical-align: middle;"><img src="logo-small.gif" border="0" style="vertical-align: middle;">
       &nbsp;&nbsp;<img src="one2knowweb-header.gif" border="0" style="vertical-align: middle;">&nbsp;</b></td>
   </tr>
    <tr>
 <form name="actionform" method="post" action="logon.asp">
  <input type="hidden" name="action" value="login">
   <table width="100%" cellspacing="0" cellpadding="3" border="0">
         <tr>
      <th align="left">Loginprocedure</th>
        </tr>
  </table>
   <br><br>
  <table align=center cellspacing="0" width=50% cellpadding="5">
        <tr>
      <th colspan="3">Login</th>
        </tr>
      <tr>
                 <td style="color:black;">UserName</td>
      <td><input type="text" name="fldUsername" value="" size="20">
      <script language=javascript>document.forms(0).fldUsername.focus()</script>
      </td>
         </tr>
       <tr>
                <td  style="color:black;">Wachtwoord</td>
      <td><input type="password" name="fldPassword" value="" size="20"></td>
        </tr>
          <tr>
      <td >&nbsp;</td>
      <td ><br>
      <input type="submit" name="btnLogin" value="OK"></td>
         </tr>
</table>
<br>
</form>
</table>      
</body>
</html>