Hi guys.
I have a series of select boxes on a form. I am currently generating the values to be shown in the select box by assigning an array with the values to a variable in the php script and then using that variable for the 'options' of the select. Is this the best way to do this? I could also create a database table with the options in and query the database everytime the script is ran. I'm thinking this is less efficient though?
I also want users to be able to add new options to the select box too so I need to considetr which method makes this easier.
thanks for any help
Anthony
best way to populate 'select' box options on forms?
Moderator: General Moderators
-
ant_sutton
- Forum Commoner
- Posts: 32
- Joined: Thu May 05, 2005 5:27 am
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
ant_sutton
- Forum Commoner
- Posts: 32
- Joined: Thu May 05, 2005 5:27 am
re
Hi. thanks for your reply jcart. I didnt think it through properly. It will be a GUI where the user can add new options so I think the only way would be to use a DB. thanks alot