| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|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)|
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.
| 6:44 am on Aug 28, 2006 (gmt 0)|
Selecting multiple options with a select element...
|<select multiple="multiple"></select> |
[edited by: JAB_Creations at 6:44 am (utc) on Aug. 28, 2006]
| 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.
| 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...
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved