% dim strFullName, strEmail, strError, objEmail if ucase(trim(request.serverVariables("REQUEST_METHOD"))) = "POST" then ' retrieve form values strFullName = trim(request.form("fullName")) strEmail = trim(request.form("email")) ' validate form values if strFullName = "" then strError = strError & ",noName" if strEmail = "" then strError = strError & ",noEmail" ' send email if strError = "" then set objEmail = server.createObject("CDO.Message") with objEmail .from = "join@deliveringprosperity.com" .to = "bfedorko@nysanet.org" .subject = "Request to Join the Delivering Prosperity Email List" .textBody = "Please add the following individual to the Delivering Prosperity email list:" & vbCrLf .textBody = .textBody & vbCrLf .textBody = .textBody & "Name: " & strFullName & vbCrLf .textBody = .textBody & "Email: " & strEmail & vbCrLf .send() end with server.transfer "join_success.asp" end if end if %>
|
|||||||||||||