Skip to main content
August 2, 2007
Question

Send Form Data

  • August 2, 2007
  • 2 replies
  • 508 views
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
This topic has been closed for replies.

2 replies

Inspiring
August 2, 2007
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 + ...
>


Participant
August 2, 2007
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 + ...