If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > how to create a login page using asp ??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-04, 10:27
adiboy adiboy is offline
Registered User
 
Join Date: Jun 2004
Posts: 23
Exclamation how to create a login page using asp ??

how do i create a login page where if:

1) username is invalid, it will show the Login_InvalidUser.asp;
2) username valid but password invalid, it will show the Login_InvalidPass.asp
3) Both valid, it will proceed to Home.asp
Reply With Quote
  #2 (permalink)  
Old 09-27-04, 19:15
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
err,.. use response.redirect is your simple answer.... however it is probably better not to do it the way you have suggested.... it would be better to pass a state to the orginal login page. the orginal login page can check the state and produce a message identifying the problem.

Additionally you shouldn't tell then what is wrong just that it failed. If you give them a reason it will only help people hack the site.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On