Forums

This topic is locked

ASP code help

Posted 10 Sep 2001 15:55:08
1
has voted
10 Sep 2001 15:55:08 Phuc Ngo posted:
Hi All,

Could someone help me with this ASP code. This is a form that email all the
information to an email specify. I got this code out of a tutorial site and
it seem to be working fine. The problem is that in the tutorial, the author
only uses two variables and he uses the line code below to display it:

objCDO.Body ="Name: " & ename & " " & branch

The result is this:
Name: John Research

I want to display more than one variable and in this format:

Name: John
Branch: Research
Email:
Suggestion:
This is a test

How do I write this code in this command line to display the information just like above?

objCDO.Body = ???


Below is the whole code for the mail I got from the tutorial.
Thank you for all your help in dvance.
-dave


<%
if Request.Querystring("isSubmitted" = "yes" then

Dim ename, branch, email, suggestion
Dim objCDO

ename = Request.Querystring("Name"
branch = Request.Querystring("Branch"
email = Request.Querystring("Email"
suggestion = Request.Querystring("Technical_Suggestion"

Set objCDO = Server.CreateObject("CDONTS.NewMail"

objCDO.From = email
objCDO.To =" "
objCDO.Cc =""
objCDO.Subject ="Technical Suggestions"
objCDO.Body ="Name: " & ename & " " & branch

objCDO.BodyFormat = 1
objCDO.MailFormat = 1

objCDO.Send

ConfirmMsg = "Thank you for submitting your suggestions."

end if
%>

Replies

Replied 10 Sep 2001 17:34:51
10 Sep 2001 17:34:51 Viktor Farcic replied:
I allready answered to your question:
www.udzone.com/forum/topic.asp?TOPIC_ID=10329&FORUM_ID=7&CAT_ID=5&Topic_Title=ASP+code+help&Forum_Title=ASP

Please don't post the same question more than once.

Reply to this topic