M
Michael Handy
hello,
I would like to have a text box pull from a ddb is this possible. I am trying to e-mail the resaults and I know how to use a text box but i cant figure out any other way. her is the script. the mail = request.form("Email") is a text box form the other page but i would like it to pull from the ddb. thanks
<%
DIM strEmail, strName, strComments, mail, reply, objMail
strEmail = request.form("Email")
strName = request.form("FirstName") & vbCrLf & request.form("LastName")
strComments = request.form("Comments")
mail = request.form("Email")
reply = "(e-mail address removed)"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = reply
objMail.Subject = "Account Info"
objMail.To = mail
objMail.Body = "Email: " & strEmail & vbCrLf & _
"Name: " & strName & vbCrLf & _
"Comments: " & strComments & vbCrLf
objMail.Send
Set objMail = nothing
%><P><%
strName = request.form("Name")
Response.Write strName
%>Thank you, you will receive your account info soon.</P>
I would like to have a text box pull from a ddb is this possible. I am trying to e-mail the resaults and I know how to use a text box but i cant figure out any other way. her is the script. the mail = request.form("Email") is a text box form the other page but i would like it to pull from the ddb. thanks
<%
DIM strEmail, strName, strComments, mail, reply, objMail
strEmail = request.form("Email")
strName = request.form("FirstName") & vbCrLf & request.form("LastName")
strComments = request.form("Comments")
mail = request.form("Email")
reply = "(e-mail address removed)"
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = reply
objMail.Subject = "Account Info"
objMail.To = mail
objMail.Body = "Email: " & strEmail & vbCrLf & _
"Name: " & strName & vbCrLf & _
"Comments: " & strComments & vbCrLf
objMail.Send
Set objMail = nothing
%><P><%
strName = request.form("Name")
Response.Write strName
%>Thank you, you will receive your account info soon.</P>