Results 1 to 4 of 4

Thread: Default value in SELECT form

  1. #1
    Join Date
    Feb 2004

    Question Default value in SELECT form

    I am developing a system where users can edit their details. Among the details they can edit are in the form of drop down menu.

    If for example in a member's Salutation he chose a 'Mr.', once he edits his profile the form should automatically be set as

    <select name="salutation">
    <option>PLEASE SELECT SALUTATION</option>
    <option "Dr">Dr.</option>
    <option "Mr" Selected>Mr.</option>
    <option "Mrs">Mrs.</option>
    <option "Ms">Ms.</option>

    How do I make such pre defined selected value if I have a variable named salutation = "Mr."

    Hope somebody can help me.

  2. #2
    Join Date
    Aug 2003
    is a thread that should help you.

    the eventual answer is at this post:

    that's if you're using php..

  3. #3
    Join Date
    Feb 2004
    Thanks hammerslane. Have you got an ASP version? I wonder if there is another way because my concern is on the COUNTRY field which is a very long array of options.

  4. #4
    Join Date
    Aug 2003
    i'm afraid i don't know any asp. i can see how my code, even adapted for asp, would be very heavy.
    i'm not sure of a better way to do it. maybe you're better posting at the asp forum....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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