How to set dropdown box to default to cookie value

Results 1 to 2 of 2

Thread: How to set dropdown box to default to cookie value

  1. #1
    Join Date
    Dec 1969
    Posts
    72

    Default How to set dropdown box to default to cookie value

    Hi! I am coding a user login form that creates a username cookie. After the cookie is created, how can I populate a dropdown box so that it defaults to the username cookie value?<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    1,388

    Default RE: How to set dropdown box to default to cookie v

    In your ASP page put:<BR><BR>&#060;%username=request.cookies("cooki ename")%&#062;<BR>&#060;select name="username"&#062;<BR>&#060;option selected&#062;&#060;%=username%&#062;&#060;/option&#062;<BR>&#060;/select&#062;<BR><BR>Hope this was what you needed.<BR>Good luck.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •