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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working with cookies

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have the following cookie that I am trying to request and display on the screen in a text box

I have this code
Dim rexx
rexx = Request.Cookies("ffutsym")

and this is how I display it

<input name=&quot;textfield&quot; type=&quot;text&quot; value=&quot;<%=rexx.value %>&quot;>
This is the error I am getting
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'STHOMPSON'
/mystuff/Mystuff/reports/midevals.asp, line 110


Line 110 is the textfieeld and STHOMPSON is what is what was stored in the cookie.

Any help would be great!!
 
Hi,

You're using rexx.value which is telling the server that you want the object rexx's value. The server expects an object because you said '.value'. rexx is just a variable though.

rexx holds what was in the cookie (rexx = STHOMPSON), so there isn't any need to use rexx.value. Just use <%=rexx%>.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top