snowboardr
Programmer
I am not seeing why I get a type mismatch, if someone could point this out to me that would be a great help.
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'ErrorMsg'
If NOT isEmpty(ErrorMsg(0)) then '## (Errors on this line)
<%
If Request.QueryString("action"
= "verify" then
Dim ErrorMsg(5), messageTmp
first_name = Request.Form("first_name"
last_name = Request.Form("last_name"
address = Request.Form("address"
StrState = Request.Form("state"
Zip = Request.Form("zip"
int = Request.Form("int"
If isEmpty(first_name) then
ErrorMsg(0) = "error"
End if
If isEmpty(last_name) then
ErrorMsg(1) = "error"
End if
If isEmpty(address) then
ErrorMsg(2) = "error"
End if
If isEmpty(StrState) then
ErrorMsg(3) = "error"
End if
If isEmpty(Zip) then
ErrorMsg(4) = "error"
End if
If int = "#" then
ErrorMsg(5) = "error"
End if
For each x in ErrorMsg
If Not IsEmtpy(message) then
messageTmp = "1"
Else
messageTmp = "0"
End if
Next
If messageTmp = "0" then
'Put insert db code here..
'Redirect to thanks page..
End if
End if
%>
<% If NOT isEmpty(ErrorMsg(0)) then '## ERRORS HERE %>
<tr>
<td colspan="2">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b><font color="#FF0000">Please
provide a first name, and then re-submit the form.</font></b></font></div>
</td>
</tr>
<% End If %>
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'ErrorMsg'
If NOT isEmpty(ErrorMsg(0)) then '## (Errors on this line)
<%
If Request.QueryString("action"
Dim ErrorMsg(5), messageTmp
first_name = Request.Form("first_name"
last_name = Request.Form("last_name"
address = Request.Form("address"
StrState = Request.Form("state"
Zip = Request.Form("zip"
int = Request.Form("int"
If isEmpty(first_name) then
ErrorMsg(0) = "error"
End if
If isEmpty(last_name) then
ErrorMsg(1) = "error"
End if
If isEmpty(address) then
ErrorMsg(2) = "error"
End if
If isEmpty(StrState) then
ErrorMsg(3) = "error"
End if
If isEmpty(Zip) then
ErrorMsg(4) = "error"
End if
If int = "#" then
ErrorMsg(5) = "error"
End if
For each x in ErrorMsg
If Not IsEmtpy(message) then
messageTmp = "1"
Else
messageTmp = "0"
End if
Next
If messageTmp = "0" then
'Put insert db code here..
'Redirect to thanks page..
End if
End if
%>
<% If NOT isEmpty(ErrorMsg(0)) then '## ERRORS HERE %>
<tr>
<td colspan="2">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b><font color="#FF0000">Please
provide a first name, and then re-submit the form.</font></b></font></div>
</td>
</tr>
<% End If %>