
December 8th, 2010, 09:04 AM
|
|
Contributing User
|
|
Join Date: Jan 2007
Location: Dela-Where?
Posts: 42

Time spent in forums: 1 Week 6 h 39 m 54 sec
Reputation Power: 7
|
|
|
Error Help
Hello,
I should start off as saying I am a complete noob to asp. I am normally an PHP developer but I need to do a quick ASP project for my boss. I have this code so far:
Code:
<%
dim errors
call email_validate()
function email_validate()
Dim required(7), data, errors(), check
required(0) = "name"
required(1) = "phone"
required(2) = "address"
required(3) = "city"
required(4) = "state"
required(5) = "zip"
required(6) = "email"
Set data=Server.CreateObject("Scripting.Dictionary")
data.Add "name",""
data.Add "phone",""
data.Add "address",""
data.Add "city",""
data.Add "state",""
data.Add "zip",""
data.Add "email",""
data.Add "comments",""
For Each check In required
If Not IsEmpty(Request.QueryString(check)) Then data.Item(check) = Request.QueryString(check) End If
Next
end function
%>
Which throws this error:
Request object error 'ASP 0102 : 80004005'
Expecting string input
/test.asp, line 29
The function expects a string as input.
What am I missing? Thanks for your help.
__________________
"Bart Stop Pestering Satan!" - Marge Simpson
|