HardCoreCoder
Programmer
I have 2 checkboxes on my form. If they check them the value comes back as Yes. that works fine. What I want to do is have the value come back as No if the box isn't checked.
I tried it this way (in red) and it isn't working:
Sorry for the stupid questions, I am new to ASP. You guys have been a great help! I very much appreciate you all.
I tried it this way (in red) and it isn't working:
Code:
'Declare variables for the form input fields and the e-mail
dim strAddr, replyTo, strSubject, strName
dim strMsg, strDeptPhone, strPerspective
dim strClassAssignment, strTermPaper
dim strText
'Get input from the form and assign it to script variables
strAddr = Trim(Request.form("user_email"))
if strAddr <> "" then
replyTo = cstr(strAddr)
end if
strSubject = Request.form("user_subject")
strName = Request.form("user_name")
strMsg = Request.form("question")
strDeptPhone = Request.form("dept_phone")
strPerspective = Request.form("perspective")
strClassAssignment = Request.form("class_assignment")
[COLOR=red] if strClassAssignment <> "" then
strClassAssignment = No
end if[/color]
strTermPaper = Request.form("term_paper")
[COLOR=red] if strTermPaper <> "" then
strTermPaper = No
end if[/color]
strText = "E-mail from: " & strName & vbCrLf &_
"Concerning: " & strMsg & vbCrLf & vbCrLf &_
"Dept. Phone: " & strDeptPhone & vbCrLf &_
"Perspective: " & strPerspective & vbCrLf &_
"Class Assignment: " & strClassAssignment & vbCrLf & "Term Paper: " & strTermPaper & vbCrLf & "."
send_email()
Sorry for the stupid questions, I am new to ASP. You guys have been a great help! I very much appreciate you all.