469,322 Members | 1,614 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

ASP form mail question

Hey guys,

I have an ASP script that was setup by our hosting people. It grabs form fields and emails them to me like this:

msgBodyText = request.form("upgrade") & chr(13) & chr(10) & request.form("location") & chr(13) & chr(10) & request.form("last_name")

When it emails this to me, it grabs whatever text was in that form field and sends it to me.

What I'm trying to accomplish is to get it to do this:

Name: name
Location: location

I've tried many variations of response.write and similar to get that text before the request.form but nothing works.

Any suggestions?

Thanks!
Aug 6 '07 #1
1 995
jhardman
3,406 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. for each x in request.form
  2.    msgBodyText = msgBodyText & x & ": " & request.form(x) & vbNewLine
  3. next
Jared
Aug 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.