Welcome to WebmasterWorld Guest from 54.146.59.202

Forum Moderators: incrediBILL

Message Too Old, No Replies

Load SELECT options from a file

How can I fill a SELECT element from a configuration file.

     
5:50 pm on Aug 27, 2006 (gmt 0)

5+ Year Member



Is it possible to load all the options for a SELECT element, from a configuration file? I would like the administrator to be able to add or edit options, without having to edit the HTML.
Thanks
6:44 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Selecting multiple options with a select element...

<select multiple="multiple"></select>

- John

[edited by: JAB_Creations at 6:44 am (utc) on Aug. 28, 2006]

8:55 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



You'll need to have a server-side script (PHP, ASP...) that reads your config file and generates the HTML to be returned to the client.
9:45 pm on Aug 29, 2006 (gmt 0)

10+ Year Member



If you can teach your administrator just the HTML for the options themselves, you could have the list of options in an include and, if your server allows SSI, you wouldn't need a scripting language...
 

Featured Threads

Hot Threads This Week

Hot Threads This Month