Form handling with a random number of elements? 
Author Message
 Form handling with a random number of elements?

Maybe I've been taking the wrong approach and someone can point me in a
different direction.

I have a form that is built from a database that allows a user to delete
entries from a directory. The number of entries isn't set, so I "select
*" from the database and cycle through the recordset to build the form.
Each entry is named using a 'for next' loop, so that the form elements
beside each name are named "entry1", "entry2", etc.

When the user submits the form, how can I get my next form to cycle
through the entire list checking to see which entries should be deleted
from the database? I have been trying various stuff with the following
code, but none of it is working.

for i=0 to request.form("last_number")
entry=request.form("entry"&i)
next

Does anyone have a different way I can try to do this? Or a fix for the
above code?

Thanks
--Michael

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Thu, 14 Mar 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to get the number of free Handles or the number of used handles

2. Handling dynamically generated form elements

3. Handling Dynamical Form Elements

4. Number of elements in a form

5. Number of elements in a form

6. How to get the form element number

7. The number of form elements

8. Random Number Generation isn't random if.....

9. Random number generator seems to be not random!

10. Insert a random number number into a pre-designed Word doc

11. Exclude specific numbers from random number generation?

12. Selecting Random Element from an Array

 

 
Powered by phpBB® Forum Software