% '<@ language = "vbscript" > '< option explicit 'response.expires = 0 'server.scriptTimeOut = 9000 'seconds until timeout (15 minutes) ' //////////////////////////////////////////////////////////////////////////////////////////////////// '// Form to Email Gateway. This script renders a form that posts to itself, validates the data, '// sends an email, and presents a thank you message. The page has two modes: form and processing '// mode. The page defaults to form mode without any querystring info. With '?mod=proc' in the querystring '// the page will be in processing mode. '// '// Most operations concern the hash tables objVal, objPar, objMsg. The objVal hash, holds the name/value '// combinations for the form inputs. The hash keys must be identical to the values of the input tag's name '// attributes. The objPar hash holds the error parameter information. The keys in objPar must exist as keys in objVal. '// Based on the results of the validation routine, error messages are stored in the objMsg hash. Additional '// hashes may be used to generate drop boxes. '// '// In order to maximize this page's flexibility of use, it is not a complete page as it is missing '// ,
, and tags. '// '// The Berndt Group applications@berndtgroup.net ' //////////////////////////////////////////////////////////////////////////////////////////////////// '// dimension and initialize variables and objects '// dim variables 'dim i '// integer iterator dim strItem '// hash iterator dim strMod '// mode value dim strErrMsg '// error message inside hash iteration dim strBody '// email body dim strResult '// email send result message dim boolErr '// true if form does not pass validation dim boolDebug '// set manually to display contents of hashes dim boolInterestChecked '// true if at least one interest checkbox is checked dim boolEventChecked '// true if at least one interest checkbox is checked dim boolProgramChecked '// true if at least one interest checkbox is checked dim boolPhoneError '// true if at least one phone input field is invalid dim objVal '// hash contains form name/value combinations dim objPar '// hash contains error parameter keywords dim objMsg '// hash contains error messages dim objState '// Holds options for State Dropdown box dim objCDONTS '// alternate mail object dim strEmail '// Recipient/Sender Address dim strEmail_Name '// Recipient Name dim strEmail_Subject '// Subject Line dim strState dim strChecked 'dim objConn 'Set objConn = Application("objConn") 'strEmail = "" strEmail = "investments@mmarealtycapital.com" strEmail_Name = "" strEmail_Subject = "MMA Realty Capital Website Request for Information" '// initialize variables boolErr = FALSE boolDebug = FALSE 'boolInterestChecked = FALSE 'boolPhoneError = FALSE strBody = "" & vbCrLf strBody = strBody & "" strBody = strBody & "" strBody = strBody & "" 'HTML = HTML & "| " & strItem & ": | " & objVal.item(strItem) & " |
|
|
|
||||||
![]() |
|||||||