Login Page
This feature is for registered users only.
If you need an account please email the details to:
support@fenwicksregiment.org
Your account will be activated within 5 days.
The details that we require are:
Name, Date Of Birth, Contact No., Valid Email address, Regiment if any, Society if any.
Or if You are a registered user then Enter the Username and Password below and click on Login button...
<%
String user=request.getParameter("t1");
String pass=request.getParameter("t2");
Connection con=null;
Statement st=null;
ResultSet rs=null;
/* try{
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/fenwicksMB","root","psi");
st=con.createStatement();
rs=st.executeQuery("select * from users");
String flag="true";
while(rs.next())
{
String username=rs.getString(1);
String password=rs.getString(2);
if(user.equals(username) && pass.equals(password) && flag=="true")
{
/*RequestDispatcher rd=request.getRequestDispatcher("home_mboard.jsp");
rd.forward(request, response);*/
//response.sendRedirect("/final/home_mboard.jsp");
%>
<%
flag="false";
}
}
}
catch(Exception e) {
} finally {
rs.close();
st.close();
con.close();
} */
out.print("testing");
%>