Looking for code sample

V

vbMark

What I want to do is this:

When the user submits the form his selections in the dropdown boxes will be
saved in a cookie.

When he loads the page again the value saved in the cookie will be
reflected in the dropdown boxes.

I know how to do cookies but don't know how to reference controls. Can
someone point me to or show me an example?

Thanks!
 
S

Steven Burn

'// Assumes your select box is named "selValue"

'// If using the POST method
Request.Form("selValue")

'// If using the GET method
Request.QueryString("selValue")

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
V

vbMark

Works great! Thanks.

'// Assumes your select box is named "selValue"

'// If using the POST method
Request.Form("selValue")

'// If using the GET method
Request.QueryString("selValue")

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top