Click to See Complete Forum and Search --> : short cookies question


noshankus
04-22-2003, 08:52 AM
Hello,


I have a webpage with a drop down box, where the user selects his name, and clicks continue to go to another page (mostly done in Perl).

However, I want to set up cookies so that the user does not have to scroll down through the list names every time they visit the site.

I'm having a lot of trouble understanding the whole "cookie" issue. Anyone know how to do something nice like this?

Thank you for your help,
Best regards,

Jona
04-22-2003, 10:15 AM
Well, your question is short, but the answer won't quite be that way... Why don't you set the cookie with Perl? (Just for my curiousity.) Do you know anything about Javascript cookies? Hold on a little... I'll work on it... But ya gotta learn from it. ;)

khalidali63
04-22-2003, 10:17 AM
reading or writing cookies is fairly simple,your question is,to some extent, not wel described.
Take a look at the link below that will show you functionality to read,write cookie.

http://68.145.35.86/skills/javascripts/CompleteCookieUseage.html

if you look at the code you will find out that the way I get data back from the cookie object its in array object.if you use the same pattern then creating a select box from the values in the array should be very much straight forward.

Jona
04-22-2003, 10:21 AM
I have used session cookies to accomplish this, so between Khalid's code and the code at http://kd7pyo.infinitypages.com/chatter/chatterbox.html you should be able to get it done. Good luck! :)

noshankus
04-23-2003, 02:55 AM
Thanks guys, I do aplogise for the VERY short description of my problem, but I was in a rush yesterday, and decided to see what would turn up!

Thank you all for the links. They work great! :)

Again, apologies for the ol' cloak and dagger routine! :D