QuadComm e-commerce solutions
![]()
|
|
|||||||||||||||||||
|
||||||||||||||||||||
|
ASP Tip: Populating form select fields from databaseIn relation databases very often the different options for a field are stored in a different table. Populating the <OPTION> fields reading the values from a table can then be very helpful and simplify the maintenance when those fields change. For that purpose I created several functions that help me doing it in different formats. All the functions are saved in an include file (remember you should call it *.asp not *.inc). These are the functions contained:
This is the meaning of the parameters used:
Now you can see an example of the output for each function: ExpSelectID:<OPTION VALUE="RetID">RetID - DescriptionExpSelectCondID:<OPTION VALUE="RetID">RetID - DescriptionExpSelect: And finally here is the code for the include file in a text file. Author: Carlos Baez You can also submit your own code examples. Just e-mail them. Read the disclaimer. |
|