|
<% if (withError) { %>
<% if (strFirstTimer.equals("true")) { %>
Welcome <%= strUserLogName %>!
Please fill up the following:
<% } else { %>
INVALID ENTRY/ENTRIES were found in your registration form.
<% if (noSType) { %>
You had not selected a SUBSCRIPTION type.
<% } %>
<% if (invalidDialUpChar) { %>
You had entered a non-numeric character on your PHONE/FAX number.
<% } %>
<% if (incFax) { %>
FAX should at least have an AREA CODE and it's NUMBER to be valid.
<% } %>
<% if (invalidEMailAdd) { %>
You had entered an invalid or INCOMPLETE e-mail address. ( Valid samples of e-mail address: juan@skyinet.net john_smith@hotmail.com )
<% } %>
<% if (areaCodeOK==false) { %>
An area code entry (or entries) is not a valid Philippine telephone area code.
<% } %>
Also, please check if you left a mandatory field/fields (with ** on the label) BLANK or EMPTY.
<% } %>
<%
} else {
SQLstmt = "SELECT Pwd_ID, ApplicLvlStatus FROM tblUserPwd WHERE Usr_LogName=\"" + strUserLogName + "\";";
users.connect(strTempDB);
rs = users.listQuery(SQLstmt);
while (rs.next()) {
intUserID = rs.getInt("Pwd_ID");
bytStatus = rs.getByte("ApplicLvlStatus");
}
if (bytStatus >= 2) {
users.disconnect();
%>
<%
} else {
users.addUserInfo(intUserID, strUserFName, strUserLName, strUserTelArea, strUserTelNum, strUserTelLocal, strUserFaxArea, strUserFaxNum, strUserFaxLocal, strUserEMail, bytMultiStatus);
SQLstmt = "UPDATE tblUserPwd SET ApplicLvlStatus=2 WHERE Usr_LogName=\"" + strUserLogName + "\";";
users.updateData(SQLstmt);
users.disconnect();
%>
<% } %>
<% } %>
|