HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 6th, 2004, 03:32 AM
shanny shanny is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 35 shanny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 50 sec
Reputation Power: 5
Question Login coding

i want to develop a web using HTML. This web require user to login using username n password, or for new user, they are able to register a new account. How could i using html to develop such a web?? could someone advise me? Thanks!

Regards
Shanny

Reply With Quote
  #2  
Old June 15th, 2004, 10:09 AM
sanjanah_verma sanjanah_verma is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 190 sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 7 h 16 m 13 sec
Reputation Power: 6
This cannot be done with HTML alone.You need to take the help of JavaScript or ASP or some script language.With HTML you can create the forms but validation of those forms need to be done for further processes.I prefer ASP as it's a secure way.Even javascript can be used.

Reply With Quote
  #3  
Old July 1st, 2004, 01:12 AM
Bullschmidt's Avatar
Bullschmidt Bullschmidt is offline
Guru
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2003
Location: USA
Posts: 885 Bullschmidt User rank is Sergeant (500 - 2000 Reputation Level)Bullschmidt User rank is Sergeant (500 - 2000 Reputation Level)Bullschmidt User rank is Sergeant (500 - 2000 Reputation Level)Bullschmidt User rank is Sergeant (500 - 2000 Reputation Level)Bullschmidt User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 9 h 44 m 12 sec
Reputation Power: 23
Here is a simple login implementation with ASP although it just assumes the users are already in the underlying database:

ASP Design Tips - Login Page
http://www.bullschmidt.com/devtip-loginpage.asp
__________________
J. Paul Schmidt
www.Bullschmidt.com - Freelance Web and Database Developer
www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

Reply With Quote
  #4  
Old July 22nd, 2004, 05:39 AM
stevemw stevemw is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: uk
Posts: 70 stevemw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Try this. Create a html page with the following form on it.

<form action="login_auth.asp" method="post">
<table>
<tr><td>
Password:
</td>
<td>
<input type="password" size="20" name="password">
</td>
</tr>
</table>
<input type="submit" value="Login">
</form>

Then create the login_auth.asp page specified in the ACTION attribute above. Add the following code to it.

<%
' Declaring variables
Dim password, AdminUser

' A Function to check if the field entered by user is empty
Function ChkString(string)
If string = "" Then string = " "
ChkString = Replace(string, "'", "''")
End Function


' Receiving values from Form
password = ChkString(Request.Form("password"))

' Hard coding the password
If Request.Form("password") = "thisisthepassword" Then
session("AdminUser")=true
Else
session("AdminUser")=false
End If

If session("AdminUser")=true Then
response.write("<a href=http://www.yourdomain.com/adminmode.html>Click here to enter Admin mode</a>")
Else
response.write("LOGIN FAILED!<p>&nbsp;</p>You either mis-typed the password or you are not an administrator.")
End If

%>

This example hard codes the password (displayed in red above).

Thanks

Steve

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Login coding


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT