<%Option Explicit Dim dbFilePath, strConnect dbFilePath = Server.MapPath("/Upload/project_mail.mdb") strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" &_ "Data Source=" & dbFilePath & ";" &_ "Persist Security Info=False" %> <% '========================================== Dim strAction strAction = Request.Form("action") Dim bolDefault, bolAccepted, strStatusMessage, strHelpMessage 'Set Defaults bolDefault = True 'Flag for deactivating option tags bolAccepted = False 'Flag used when verifying form data strStatusMessage = "Enter new user information" '========================================== '========================================== Call dbConnect'Open database connection (database.asp) '========================================== 'Determine correct path of action '========================================== Select Case strAction Case "newUser" bolAccepted = newUser()'function call to user_admin_code.asp bolDefault = False If bolAccepted = True Then strStatusMessage = "New user added" strHelpMessage = "You may now log into the message center. " &_ "However, you currently have access only to read " &_ "public messages. Within 24 hours your account will " &_ "be approved for access to other functions. If you " &_ "have any problems, please contact Livewire at 352-373-7090." Else strStatusMessage = "One or more of your entries was invalid." strHelpMessage = "" End If End Select '========================================== %> Message Board

New User User Password

<% Response.Write strStatusMessage & strUserNameError%>

<% 'Determine correct formatting for form feilds '========================================== Dim strUserNameOpt, strPasswordOpt Dim strFirstNameOpt, strLastNameOpt, strEmailOpt, strCompanyOpt Dim strSubmitButton '========================================== 'Some of the following variables are from user_admin_code.asp '========================================== If bolDefault = True Then strUserNameOpt = "" strPasswordOpt = "" strFirstNameOpt = "" strLastNameOpt = "" strEmailOpt = "" strCompanyOpt = "" strSubmitButton = "" ElseIf bolAccepted = False Then strUserNameOpt = strUserNameDot & "" strPasswordOpt = strPasswordDot & "" strFirstNameOpt = strFirstNameDot & "" strLastNameOpt = strLastNameDot & "" strEmailOpt = strEmailDot & "" strCompanyOpt = strCompanyDot & "" strSubmitButton = "" Else strUserNameOpt = strUserName strPasswordOpt = strPassword strFirstNameOpt = strFirstName strLastNameOpt = strLastName strEmailOpt = strEmail strCompanyOpt = strCompany strSubmitButton = "" End IF '========================================== %>
User Name <%=strUserNameOpt%>
Password <%=strPasswordOpt%>

First Name <%=strFirstNameOpt%>
Last Name <%=strLastNameOpt%>
Email Address <%=strEmailOpt%>
Company <%=strCompanyOpt%>
<%=strSubmitButton%>


<%=strHelpMessage%>
   
<%Call dbDisconnect'Close database connection%>