Code
Jason - the code is below - there is no body text yet, since it will not allow me to save it. (I get the error)...so you know, I removed the entire code and tried to use UE again. It allowed me to complete the UE dialog, but if I try to edit it again, I get the same JS error.
<!--#include file="../../WA_Universal_Email/AspEmail_VB.asp" -->
<!--#include file="../../WA_Universal_Email/MailFormatting_VB.asp" -->
<%
function WA_Universal_Email_1_SendMail(RecipientEmail)
dim MailObject, MailAttachments, MailBCC, MailCC, MailTo, MailBodyFormat, MailBody, MailImportance, MailFrom, MailSubject
MailAttachments = ""
MailBCC = ""
MailCC = ""
MailTo = ""
MailBodyFormat = ""
MailBody = ""
MailImportance = ""
MailFrom = "noreply@mydomain.org|WA|noreply@mydomain.org"
MailSubject = "Employee Change of Information"
'Global Variables
gBodyFormat = ""
set WA_MailObject = WAUE_Definition("172.xx.1.xx","25","","")
if (RecipientEmail <> "") then
set WA_MailObject = WAUE_AddRecipient(WA_MailObject,RecipientEmail)
else
'To Entries
end if
'Attachment Entries
'BCC Entries
'CC Entries
'Character Set
'Body Format
set WA_MailObject = WAUE_BodyFormat(WA_MailObject,0)
MailBodyFormat = gBodyFormat
'Set Importance
set WA_MailObject = WAUE_SetImportance(WA_MailObject,"3")
'Start Mail Body
'End Mail Body
set WA_MailObject = WAUE_SendMail(WA_MailObject,MailAttachments,MailBCC,MailCC,MailTo,MailImportance,MailFrom,MailSubject,MailBody)
set WA_MailObject = nothing
end function
%>
<%
if ((Request.ServerVariables("Request_Method") = "POST")) then
'WA Universal Email object="AspEmail"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("dstoltz@mydomain.org")
'Send Mail All Entries
if ("sent.asp"<>"") then
Response.Redirect("sent.asp")
end if
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change of Information Sheet</title>
<link href="../../styles/form_dark.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<form class="dark">
<ol>
<li>
<fieldset>
<legend>Current Employee Information</legend>
<ol>
<li>
<label for="ename">Employee Name</label>
<input type="text" id="ename" name="ename" value="" />
</li>
<li>
<label for="ssn">Last 4 SSN</label>
<input type="text" id="ssn" name="ssn" value="" />
</li>
<li>
<label for="nick">Nickname</label>
<input type="text" id="nick" name="nick" value="" />
</li>
<li>
<label for="edate">Employment Date</label>
<input type="text" id="edate" name="edate" value="" />
</li>
<li>
<label for="status">Status</label>
<select id="status" name="status">
<option value="Full Time">Full Time</option>
<option value="Full Time">Full Time</option>
<option value="Per Diem">Per Diem</option>
</select>
</li>
<li>
<label for="title">Job Title</label>
<input type="text" id="title" name="title" value="" />
</li>
<li>
<label for="dept">Department</label>
<input type="text" id="dept" name="dept" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Address/Phone Number</legend>
<ol>
<li>
<label for="address">New Address (Number, Street, City, State, Zip)</label>
<input type="text" id="address" name="address" value="" />
</li>
<li style="">
<label for="township">Township</label>
<input type="text" id="township" name="township" value="" />
</li>
<li>
<label for="country">County</label>
<input type="text" id="country" name="country" value="" />
</li>
<li>
<label for="school">School District</label>
<input type="text" id="school" name="school" value="" />
</li>
<li>
<label for="phone">Home/Contact Phone</label>
<input type="text" id="phone" name="phone" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Marital Status/Name *</legend>
<ol>
<li>
<label for="reason">Reason</label>
<div>
<label>
<input type="radio" name="reason" value="Married" />
Married</label>
<label>
<input type="radio" name="reason" value="Divorced" />
Divorced</label>
<label>
<input type="radio" name="reason" value="Widowed" />
Widowed</label>
</div>
</li>
<li>
<label for="fname">Employee Full Name</label>
<input type="text" id="fname" name="fname" value="" />
</li>
<li>
<label for="spouse">Name of Spouse</label>
<input type="text" id="spouse" name="spouse" value="" />
</li>
<li>
<label for="dob">Spouse BirthDate</label>
<input type="text" id="dob" name="dob" value="" />
</li>
<li>
<label for="sssn">Spouse SSN</label>
<input type="text" id="sssn" name="sssn" value="" />
</li>
</ol>
</fieldset>
</li>
<li>
<fieldset>
<legend>Change of Emergency Contact</legend>
<ol>
<li>
<label for="cname">Name</label>
<input type="text" id="cname" name="cname" value="" />
</li>
<li>
<label for="caddress">Address</label>
<input type="text" id="caddress" name="caddress" value="" />
</li>
<li>
<label for="relationship">Relationship</label>
<input type="text" id="relationship" name="relationship" value="" />
</li>
<li style="">
<label for="ephone">Phone</label>
<input type="text" id="ephone" name="ephone" value="" />
</li>
</ol>
</fieldset>
</li>
<li style="">
<fieldset>
<legend>Employee Signature Authorization</legend>
<ol>
<li>
<label for="auth">Full Name</label>
<input type="text" id="auth" name="auth" value="" />
</li>
<li>
<label for="dateauth">Effective Date</label>
<input type="text" id="dateauth" name="dateauth" value="" />
</li>
</ol>
</fieldset>
</li>
</ol>
<p style="text-align:center">
<input type="submit" value="SUBMIT CHANGES" />
</p>
</form>
</div>
</body>
</html>