<%@ page import="java.sql.*" %> <%@ page errorPage="errorpage.jsp" %> <%@ page import="java.util.*" %> Welcome To ThinkCan Pte Ltd Sign Up
 
Home Page
Home Page
Home Page

Home Page

 

Company Info

Setting up your new account with us....

Please enter your login name :

Please enter your email address :

 

Please enter your password :

 

Please confirm your password again :

 

If you have questions or concerns about any of the terms of the Privacy Policy statements, please email us at enquiry@ThinkCan.com.

Copyrights @ 2008 ThinkCan Pte Ltd. All rights reserved.

This statement last updated on May 26, 2008.

Copyright © 2008. Privacy Policy
The system time is now <%= new java.util.Date() %>
<% /* //initialize driver class try { Class.forName("com.sybase.jdbc2.jdbc.SybDriver"); } catch (Exception e) { out.println("Fail to initialize Sybase JDBC driver: " + e.toString() + "

"); } String dbUser = "dba"; String dbPasswd = "sql"; String dbURL = "jdbc:sybase:Tds:localhost:2638"; //connect Connection conn = null; try { conn = DriverManager.getConnection(dbURL,dbUser,dbPasswd); //out.println(" Connection status: " + conn + "

"); } catch(Exception e) { out.println("Connection failed: " + e.toString() + "

"); } Statement stmt = conn.createStatement(); ResultSet rs; */ String sql; // insert String value = request.getParameter("submit"); if(value!=null) { String username = request.getParameter("Login"); String email = request.getParameter("Email"); String pass1 = request.getParameter("Password1"); String pass2 = request.getParameter("Password2"); if((pass1.equals(pass2)) && (username!=null)) { sql = "INSERT INTO signup VALUES("+"'"+ username +"',"+"'"+ pass1 +"',"+"'"+ email +"')"; dbselect.executeQuery(sql); //response.sendRedirect("Signup_success.html"); %>

<% out.println(" You have sucessfully signed up as "+ username +" , thank you !!!"); %>


Click here to proceed to log on to your new account.

<% } else if (!(pass1.equals(pass2))) { %> <% //response.sendRedirect("SignUp.jsp"); } response.sendRedirect("/purejsp/Signup_success.html"); //RequestDispatcher.forward("Signup_success.html"); } /* //rs.close(); stmt.close(); //commit conn.commit(); //disconnect conn.close(); */ %>