471,859 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,859 software developers and data experts.

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?

Aug 6 '07 #1
1 1022
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
Aug 7 '07 #2

Post your reply

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

Similar topics

3 posts views Thread by John | last post: by
5 posts views Thread by Henry Stock | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.