Information générale
Catégorie:
Applications Internet
>>FOR EACH lcKey IN toRequest.Form
>> x=toRequest.Form( lcKey).Item
>>ENDFOR
> Actually, since the collection is returning text items, why regain the same > reference you already have?
> FOR EACH lcKey IN toRequest.Form
> ?lcKey
>ENDFOR
> Or am I misunderstanding the intent?
lcKey will hold the name of the field from the HTML page and x will then hold the value entered into the field.
What I'm trying to do is get the field names from the collection using the for each loop and then get the values of the fields. Thus I can build a SQL statement to insert into a table without knowing the field names.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement