![]() |
Simple Login in ASP using MS Access database
Create a database in MSAccess and save database as Studentrecords.mdb. Now add a table to the database using the following format
Code:
StudentNO TextNow create a new file and name it login.asp Code: ASP
Code: ASP
|
Re: Simple Login in ASP using MS Access database
Hello
if i want to login using userid or email then what will be the code?? Thank u |
Re: Simple Login in ASP using MS Access database
Quote:
|
Re: Simple Login in ASP using MS Access database
Hi,
Thanks for the reply. I think you din't get my point. I am asking for the code which help me to login using both username and email id . Ie is if i want i can login with a user name. Or else with a email id . The same way which is there in monster.com Thanks in advance. bye |
Re: Simple Login in ASP using MS Access database
Quote:
If one verification process fails you can go with the other but you can also test if the username contains some predefined valid email format and then go for email validation or the username one. |
Re: Simple Login in ASP using MS Access database
Hi,
I try to apply you code in Macromedia MX asp vbscript page and it not verify the username and password. Could you please let me know what I did wrong. I am new to this software and I try to create simple webpage with user name and password. please help |
Re: Simple Login in ASP using MS Access database
Did you try creating a normal ASP page and see if it works for you.
|
Re: Simple Login in ASP using MS Access database
Hi Shabbir,
It actualy work but it no validate the username and password. I can login either username and passowd blank or I just type some thinf in those 2 field. When I click login it link to verify page. Thanks, |
Re: Simple Login in ASP using MS Access database
There is a check for blank username and password and so see if it is executed correctly and if not it should display the message
Code:
if UserName <> "" or Password <> "" then |
Re: Simple Login in ASP using MS Access database
Hi Shabbir,
My bad. I were missing some code that why it not works. Now it works fine. Thanks alot. |
| All times are GMT +5.5. The time now is 12:39. |