Hi,

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.

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!

<%
Main()

Sub Main()

SendMail()
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
%>

Member Avatar for GreenDay2001

in short you could retrieve the value of radio button as of any other form.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.