View Single Post
  #1 (permalink)  
Old 02-08-10, 05:55 AM
ims225 ims225 is offline
New Member
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Problem in login page

Hi,
I am a newbie to asp... i'm jus creating a login page which gets the information from user and does not store in database... my question is how can i do this with my asp coding which never uses database connections.... i'm jus trying with the code below but it does'nt works... pl help...

Code:
<form action="admin.asp" method="post">
<tr> 
<td width="90" align="right"><span class="Estilo8">User Name: </span></td> 
<td width="131"><div align="right"> 
<input type="text" name="username" size="16" > 
</div></td> 
</tr> 
<tr> 
<td align="right"><span class="Estilo8">Password: </span></td> 
<td><div align="right"> 
<input name="password" type="password" size="16"> 
</div></td> </tr>
<tr> 
<td></td><td><div align="right"> 
<input type="submit" value="Login" name="B1">
<%if username<>"betting" and password<>"bet1234" then %>
Invalid user name and password
<%end if%>
</div></td>

pl help...

Last edited by digioz; 02-08-10 at 11:27 AM. Reason: Please use Code Tags
Reply With Quote