Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form creation in ASP

Status
Not open for further replies.

yechi2001

MIS
Apr 5, 2005
24
US
I am designing form for people to contact me but I dont want to use recordsets. I just want them to click submit and I recieve the forn in an email. What script would i use or where would i look for help. Tahnks
 

beginning web development
search for ASP "form processing"
basic HTML
mailto
cdo cdonts asp
best programming methods ;)

After you get something together then post back.
 
I've used this before

<%
If Request.Form("submit").Count > 0 Then

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "internet Form"
objMessage.Sender = "mywebsite"
objMessage.to = "your email"
objMessage.TextBody = "This form was subbmitted by " " & Request.Form("LastName")
objMessage.Configuration.Fields.Item _
(" = 2
objMessage.Configuration.Fields.Item _
(" = "mail"
objMessage.Configuration.Fields.Item _
(" = 25
objMessage.Configuration.Fields.Update
objMessage.Send
Set objMessage = Nothing
End If
%>
 
objMessage.TextBody = "This form was subbmitted by " & Request.Form("FirstName")& " " & Request.Form("LastName")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top