Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Location
    BC, Canada
    Posts
    773

    HTML SELECT form default selected

    So here's my problem... I need to auto fill a drop down menu using the value from a PHP variable. The variable contains the actual number of the option. I haven't seen a way to add the value into the SELECT tag to set the default selected option, only adding the "selected" into the individual OPTION tag... Is there a way around this? Or, is there another method I should be using?
    || Higher Intellect || Half a million documents and climbing.
    || CupidClick Dating || Just for Canadians.

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    may be u must employ a mysql database and do a condition check to list the select box with default selected
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  3. #3
    Join Date
    Sep 2002
    Location
    Santiago de Queretaro, Queretaro de Arteaga, Mexico
    Posts
    21
    No, you only have to use "selected" within OPTION tag. There is not another trick to work around.

    Regards,

    Luis Berumen

Posting Permissions

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