You error is actually in the next line in the function call "ComparePassword()", that is why the error is returning
Type mismatch: 'ComparePassword' for
If ComparePassword(Request("UID"),Request("PWD")) Then
Either Request("UID") or Request("PWD") is not the correct datatype declared by the function
Post the code for the function ComparePassword()"
PS
IMHO
It is bad practice to use Request without defining it as either a QueryString or Form collection object
- causes the server to iterate thru the collections
See
http://www.devguru.com/Technologies/asp/quickref/request.html
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Here it is
|
| If Len(Session("REFERRER")) = 0 Then
| (line 6) If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
| If ComparePassword(Request("UID"),Request("PWD")) Then
| Session("UID") = Request("UID")
| Response.Redirect Session("REFERRER")
| End If
| End If
| End If
|
| "Stefan B Rusynko" wrote:
|
| > Post a code snippet of your logon.asp, line 6 (the line causing the error + the lines defining the variables in that line)
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | This web was developed in MS Frontpage 2003.
| > |
| > | After typing in user ID and password and clicking submit to a subweb I get
| > | the error message that
| > |
| > | Microsoft VBScript runtime error '800a000d'
| > |
| > | Type mismatch: 'ComparePassword'
| > |
| > | /logon/logon.asp, line 6
| > |
| > | I have checked everything I can think of. Does anybody have any suggestions?
| >
| >
| >