Click to See Complete Forum and Search --> : problem with drop down


bufo
07-02-2004, 11:57 AM
I'm doing a drop down list of the states. When the user clicks the submit button, it checks for errors or sends an email. Either way, the page is resent. When it does this, the state selected goes away and the default is there.

Is there any way to keep the state the user selected when the page is refreshed?

gohankid77
07-02-2004, 12:02 PM
Ever heard of cookies (not the edible kind)? Find a way to use cookies. When the page is resent, the cookies should make the user's choices be selected rather than the default. An alternative is server-side scripting.

bufo
07-02-2004, 12:37 PM
yes, of course, I know what cookies are. But is that the only way to retain that value? All my text fields retain their value but this can't. I guess I can convert it to a session variable. I dont understand why it shouldn't keep the value if the text fields keep theirs.

bufo
07-02-2004, 12:41 PM
one other thing. It is passing the correct value. I can see that in the URL it displays. It just won't select it on the drop down.