Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querystring object errors 1

Status
Not open for further replies.

Telsa

Programmer
Jun 20, 2000
393
US
I keep getting this error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Response.form'

For this code and I am not seeing the problem (the address field does show the custid value):

<%
Dim intCustID
intCustiD = response.form(&quot;custid&quot;)
If isempty(intCustID) Then
intCustID = Response.Querystring(&quot;Custid&quot;)
end if


What do you see that I don't???? Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 
The proper way is
Request.form and Request.QueryString
:)
 
don't check for isempty...

instead you want to do
If incustID = &quot;&quot; then
intCustID = Response.QueryString(&quot;custID&quot;)
end if

the way that isempty works is that i checks to see if te variable has been initialized. Because you have intcustID = response.form(&quot;custid&quot;) it has been initialized... just in this case it's been initialized to &quot;&quot;

try doing this
dim somvar
if isempty(somvar) then
Response.write &quot;is empty&quot;
end if

and that should work, and hopefully illustrate what I'm saying.

hth
leo
 
er -- sorry I mean request.form and request.querystring... I haven't had my coffee yet... ;)
 
Thanks gang... my brain wasn't awake enough to see what was obvious. Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top