|
-
Jul 8th, 2003, 11:20 AM
#1
Thread Starter
Frenzied Member
Form Collection
Hi !
I have a S**T load of forms to do and i would like to use a generic send.asp to send the result in a email!
So, with ASP, i want to spit out an email that will look similar to my form !!
But, if i do this
VB Code:
For Each Item In Request.Form
Response.Write Request.Form(Item) & "<BR>"
Next
it works, but it does'nt come in the order of my form, but i can use Item to know the name of the field !
To have it in order, i have t do :
VB Code:
For x=1 To Request.Form.Count
Response.Write Request.Form(x) & "<BR>"
Next
This one comes in order, but i can't find out the name of my field, is there a way to know the name of the field ?
Thanks and i hope i explained it ok ?
-
Jul 8th, 2003, 11:30 PM
#2
Do you mean
Request.form(x).key
?
-
Jul 9th, 2003, 07:03 AM
#3
Thread Starter
Frenzied Member
Damm, I thought that was it, but it was'nt 
Object doesn't support this property or method: 'Request.Form(...).Key'
I'll have to go the other way, but their not order the same way the form is, how is it ordered ?
-
Jul 9th, 2003, 09:05 AM
#4
Thread Starter
Frenzied Member
cool cool !
You almost had it !
It is
Request.Form.Key(x)
and not
Request.Form(x).Key
Because Request.Form(x) is like Request.Form.Item(x), Request.Form(x).Key was like doiing Request.Form.Item(x).Key !!
Thanks for your help !!
-
Jul 9th, 2003, 10:45 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|