Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Send Form Data

Guest
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

What I have is a script to send form data back , but I am only getting the last form element , i.e ("contactNumber")

Below is the list of elements that I want in the email body and just need to pass this into the email. I know I am just missing something....but need to know what it is I an doing wrong....help would be appreciated


objMail.TextBody = Request.Form("Email")& vbCrlf
objMail.TextBody = Request.Form("FirstName")& vbCrlf
objMail.TextBody = Request.Form("LastName") & vbCrlf
objMail.TextBody = Request.Form("FirstName") & vbCrlf
objMail.TextBody = Request.Form("ContactNumber") & vbCrlf

I need to get this completed ASAP, so an urgent response would be helpful

Regards
TOPICS
Server side applications

Views

489
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

I think you're overwriting your body, try appending it like so:

objMail.TextBody = Request.Form("Email")& vbCrlf
objMail.TextBody = objMail.TextBody + Request.Form("FirstName")& vbCrlf
objMail.TextBody = objMail.TextBody + ...

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

LATEST
I don't believe that will work, since I think objMail.TextBody is not
readable.

Do it this way -

TextBody = Request.Form("Email")& vbCrlf
TextBody = TextBody + Request.Form("FirstName")& vbCrlf
TextBody = TextBody + ...

objMail.TextBody = TextBody

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"dpark72" <webforumsuser@macromedia.com> wrote in message
news:f8sgtl$kku$1@forums.macromedia.com...
>I think you're overwriting your body, try appending it like so:
>
> objMail.TextBody = Request.Form("Email")& vbCrlf
> objMail.TextBody = objMail.TextBody + Request.Form("FirstName")& vbCrlf
> objMail.TextBody = objMail.TextBody + ...
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines