Thanks, Tom.
I studied up on ASP, as suggested from a previous post and I have a
question, please.
I'm just trying to send an asp form submission to the "Email Address" from
within my db, based upon an id that is passed from the previous asp.
I added code to the top of the page to handle the email submission, but when
I try to add in the db field code, it seems to break the ASP, because my
fpage editor shows the text after the email code I add as black and not
colored.
If you look down here at the "To:" line, that is where I am probably adding
incorrectly the code to gran the email address for the id of the person.
The tutorial I took says this would email to an email address, but because
the email address varies upon the id passed, I am trying to use code to grab
the email address, as opposed to hard cosing in a specific email address.
Please help, if possible: (thanks)
<%
if Request.Querystring("isSubmitted") = "yes" then
Dim fname, lname, vtype, email, co, length, numberof, date, city, state,
zip, comments
Dim objCDO
fname = Request.Querystring("FNAME")
lname = Request.Querystring("LNAME")
vtype = Request.Querystring("VISIT_TYPE")
email = Request.Querystring("EMAIL")
co = Request.Querystring("COMPANY")
length = Request.Querystring("SESSION_LENGTH")
numberof = Request.Querystring("HOW_MANY_MASSAGES")
date = Request.Querystring("VISIT_DATE_DESIRED")
city = Request.Querystring("CITY")
state = Request.Querystring("STATE")
zip = Request.Querystring("ZIP")
comments = Request.Querystring("COMMENTS")
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = "(e-mail address removed)"
objCDO.To = "<%=FP_FieldLink(fp_rs,"Email Address")%>"
objCDO.Cc = ""
objCDO.Bcc = ""
objCDO.Subject = "Submitted form data from my page"
objCDO.Body = "Name: " & fname & " " & lname
objCDO.BodyFormat = 1
objCDO.MailFormat = 1
objCDO.Send
ConfirmMsg = "Thanks for submitting your name!"
end if
%>