I have been asked to set up a form with options to select a level of response from 1-10. Ive used radio buttons to this, but im not sure what to put in the asp form so that this info is processed to my email.

Im using Adobe Go-live (no :lol: please!), which is fine for adding the buttons to a form, but offers no help in the asp department.

I am more of a web designer than a coder, so im pretty stuck with what to do next.

Any help would be much appreciated.

11 Years
Discussion Span
Last Post by vishesh

Below is the ASP code that is processing the contact form... what im not sure of (didnt think it came accross that well in my first post) is what to put in the ASP form so it returns the results of the radio buttons...thanks again!


Sub Main()

Response.Redirect Request.Form("hdnRedirect")
End Sub

Sub SendMail()
Dim sName 'As String
Dim sPosition 'As String
Dim sCompany 'As String
Dim sEmail 'As String
Dim sEnquiry 'As String
Dim sEmailTo 'As String
Dim sEmailFrom 'As String

Dim oMail 'As CDONTS.NewMail
Dim sSubject 'As String
Dim sBody 'As String

With Request
sName = .Form("txtName")
sPosition = .Form("txtPosition")
sCompany = .Form("txtCompany")
sEmail = .Form("txtEmail")
sEnquiry = .Form("txtEnquiry")
sEmailFrom = .Form("hdnEmailFrom")
sEmailTo = .Form("hdnEmailTo")
sSubject = .Form("hdnSubject")
End With

sBody = "Name: " & sName & vbCrLf & vbCrLf & _
"Position: " & sPosition & vbCrLf & vbCrLf & _
"Company: " & sCompany & vbCrLf & vbCrLf & _
"Email: " & sEmail & vbCrLf & vbCrLf & _
"Enquiry: " & sEnquiry & vbCrLf

Set oMail = server.CreateObject("CDONTS.NewMail")
oMail.Send sEmailFrom, sEmailTo, sSubject, sBody
Set oMail = Nothing
End Sub

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.