%@Language="VBScript"%>
<%
font = "Verdana, Arial, Helvetica, sans-serif"
fileName = Mid(request.servervariables("SCRIPT_NAME"), InstrRev(request.servervariables("SCRIPT_NAME"), "/") + 1)
if isnumeric(request("i")) then subID = clng(request("i")) else subID = 0
if isnumeric(request("a")) then action = clng(request("a")) else action = 1
%>
<%
end if
end if
%>
Your subscription information has been successfully updated. Thanks!
<% elseif isValid = 2 then %>
Your information could not be found. If this error continues, please contact the list manager.
<% else %>
<% if isValid = 3 then %>
Invalid email address. Please correct and try again.
<% elseif isValid = 4 then %>
This email address is already subscribed to this list. Please use another.
<% elseif isValid = 5 then %>
Invalid Format. Please choose the Text or HTML format Newsletter.
<% end if %>
<%
end if ' end action 2 ifs
else ' not an action 2, attempt to get details and show message
set subRecord = mlConn.execute("SELECT ML_Subscribers.ListID, ML_Subscribers.Email, ML_Subscribers.Name, ML_Subscribers.Format, ML_Subscribers.SubscriberID, ML_Lists.Listname FROM ML_Subscribers INNER JOIN ML_Lists ON ML_Subscribers.ListID = ML_Lists.ListID WHERE ML_Subscribers.SubscriberID = " & subID)
if subRecord.EOF then ' no subscriber found...
%>
Your details could not be found. Please make sure the URL you received did not wrap to the next line thus cutting off parts of it. If this error continues, please contact the list manager.
<% else ' record found, show edit form %>