Quote:
|
Originally Posted by Heba
IF strUsername <> "" AND strPassword <> "" THEN
' Process the form as you like here
' For example enter form to your database or send it via email
ELSE
But it doesnt work .. All i want is to check if the username and password match then they willl log in
|
Writing the code to log in would help a lot, I guess.
Quote:
|
Originally Posted by Heba
Hi again .. ok lets say when the username and pass are correct
i want the user to directly go to the menu.asp page ... how can i do that?
|
Google is your friend. I don't even know ASP, but it was quite easy to find:
response.AddHeader "location", "menu.asp"
I'm not sure this works though. Another thing is that you have to call this function before outputting anything. In fact, you don't have to output anything since you will never see it anyway.
If you want the user to see the message for let's say 5 seconds, use this code:
<meta http-equiv="refresh" content="5;url=menu.asp">