|
Looks like a great solution.
If I understand correctly I should build a form with username and password fields and then use the function to check the values and output a login response from 0 to 4.
exactly what values am I assigning to the function?
I don't understand all the values in the function on the line:
CODE
Private Function loginUser(ByVal strUsername, ByVal strPassword, ByVal blnCAPTCHArequired, strType)
END CODE
particularly "ByVal blnCAPTCHArequired" and "strType". Do these values come from the CAPTCHA form?
I tried setting up a form and submitting the values for username and password and I am able to get back the values 0 and 1 only, however I'm not able to ever get back the values 2,3, or 4 and I'm not sure how to incorporate the values for the CAPTCHA image code.
Here is how I am calling the function:
First I created a form to get the username and password values and I included a CAPTCHA form and the common.asp and functions_login.asp files and then I called the function and displayed the results:
CODE
<!--#include virtual="forum/common.asp" -->
<!-- #include virtual="forum/functions/functions_login.asp" -->
<!--#include virtual="forum/includes/CAPTCHA_form_inc.asp" -->
'get values from the form
username = request.form("username") password= request.form("password")
'call the loginUser function
formResults = loginUser(username, password, true, strType)
response.write formResults
END CODE
I'm not sure if I assigned the correct values under the call function for
"ByVal blnCAPTCHArequired" and "strType"
I used "true" and "strType". Is this correct? If not, what am I supposed to be using for these values or where are they assigned for the function?
Thanks for any assistance
|