homepage Welcome to WebmasterWorld Guest from 54.234.139.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Load SELECT options from a file
How can I fill a SELECT element from a configuration file.
itKiwi




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

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

 

JAB Creations




msg:3062767
 6:44 am on Aug 28, 2006 (gmt 0)

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]

penders




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

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.

garann




msg:3065000
 9:45 pm on Aug 29, 2006 (gmt 0)

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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved