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!

Forms and Cookies

Status
Not open for further replies.

sdeezdaone

Technical User
May 31, 2002
1
US
How do you fill in a form value (text box) with a value from a cookie?

Thanks!
 
If Request.Cookies("WasHere")="yes" Then
TheString = Field & "=Request.cookies("WasHere")"

should work
provide tools to let people become their best.
 

Here is if you're using cookies with keys (cookie array)

...

Dim theValue
If Request.Cookies("theCookieName").HasKeys Then
theValue = Request.Cookies("jwdmem")("suiaz")
Else
theValue = "No Data"
End If

<input type=&quot;text&quot; name=&quot;myText&quot; value=&quot;<%= theValue%>&quot;>

... -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top