This is a discussion on "checkbox depends on database" within the Classic ASP section. This forum, and the thread "checkbox depends on database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
checkbox depends on database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
checkbox depends on database
Hi all,
I get a problem. I would like to write a code which will generate all the available items in the database under the format of checkbox, clearer, if there are 5 available items, there will be automatically 5 checkboxes generated appearing on the web page. the number of items will depend on the database. does anyone suggest me how to do that and how to pass the value of all the checkbox??? thanks for help |
|
|
|
|||
|
Re: checkbox depends on database
To generate the textboxes on the fly depending on how many records are in a database is pretty easy I suppose. I would just use a loop to generate the check boxes after verifing how many records are in the database. As for passing the values, well that is pretty vague but I am guessing that you want to collect the values of each check box. Use this for a general idea of how to do this:
http://www.w3schools.com/asp/asp_inputforms.asp feel free to ask any more questions. |
![]() |
| Tags |
| checkbox, depends, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkbox script. | thenamenoonehastaken | JavaScript Forum | 2 | Jan 18th, 2008 04:42 |
| Checkbox Required | WebNinja | Starting Out | 1 | Jan 6th, 2008 00:36 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| A Solved Checkbox | snow | Webforumz Suggestions and Feedback | 14 | Sep 25th, 2007 20:11 |
| XML Code for transfering data from one SQL Server Database to another database | plolla | Other Programming Languages | 1 | Aug 3rd, 2006 18:37 |