I wonder if someone could explain to me how on earth you set about giving a checkbox in a form a varibale.
I’m passing the form to a CDONTS ASP page, and I have three checkboxes, which I need to appear in the retuened email as either blank or ‘checked’.
(I have read the tuts here btw - but cannot get them to return a value)
My chk box is called ‘chk1’
So my AS on my submit button looks like this:
on (release) {
chk1 = chk1.getSelectedItem().label;
getURL("[color=#800080]http://www.holmes.7host.com/promise/mypage.asp[/color]", “”, “POST”);
}
My corresponding ASP page looks like this:
<% @language=“VBSCRIPT” %>
<%
Dim myMail, myBody
myBody = "Name: "& request.form(“name”) & vbcrlf
myBody = myBody & "Email: "& request.form(“email”) & vbcrlf
myBody = myBody & "Position: "& request.form(“position”) & vbcrlf
myBody = myBody & "Company: "& request.form(“company”) & vbcrlf
myBody = myBody & "Address: "& request.form(“address”) & vbcrlf
myBody = myBody & "Postcode: "& request.form(“postcode”) & vbcrlf
myBody = myBody & "Telephone: "& request.form(“telephone”) & vbcrlf
myBody = myBody & "Open Courses: "& request.form(“chk1”) & vbcrlf
myBody = myBody & "In house Courses: "& request.form(“chk2”) & vbcrlf
myBody = myBody & "Organisational Development: "& request.form(“chk3”) & vbcrlf
myBody = myBody & "Message: "& vbcrlf & request.form(“message”)
Set myMail = CreateObject(“CDONTS.NewMail”)
myMail.BodyFormat=1
myMail.MailFormat=1
myMail.From=request.form(“email”)
myMail.To="holmes@dircon.co.uk"
myMail.Subject=“Response from Promise Website”
myMail.Body=myBody
myMail.Send
set myMail=nothing
%>
Help!!