Heading

Wednesday, March 5, 2014

Web Application in Java with JDBC, Servlets, JSp and MYSQL DataBase-4

Registration Page:

<%--
    Document   : Register_Page
    Created on : Feb 24, 2014, 1:57:02 PM
    Author     : SDSTAFF
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Register Page</title>
             <link rel="stylesheet" type="text/css" href="First.css">
    </head>
    <body>
        <%
           HttpSession hs=request.getSession(false);
           if(hs==null)
           {
               RequestDispatcher rd=request.getRequestDispatcher("Login_Page.jsp");
               rd.forward(request, response);
               return;
           }
          
          
        %>      
        <p id="site">
           G C K Products
        </p>
        <div id="heading">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Home_Page.html">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Login_Page.jsp">Login</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="Register_Page.jsp">Register</a>
       
        </div>   
        <br/>
        <div id="heading1">
               <table  border="1" >
                <tr>
                  <td  valign="middle" bgcolor="#A8C5D7">
                  <form name="form1" action="accept" method="post" id="form1" onsubmit=" ">
                    <table border="0" align="center">
                      <tr>
                        <td  align="center" valign="bottom">User Name </td>
                        <td  align="center" valign="bottom"><input type="text" name="userid" id="userid" size="30"/></td>
                      </tr>
                      <tr>
                        <td align="center" valign="bottom"><span class="style28 style34">Password</span></td>
                        <td align="center" valign="bottom"><input type="password" name="passid" id="passid" size="30"/></td>
                      </tr>
                      <tr>
                        <td align="center" valign="bottom"><span class="style28 style34">Name</span></td>
                        <td align="center" valign="bottom"><input type="text" name="username" id="username" size="30" /></td>
                      </tr>
                      <tr>
                        <td align="center" valign="bottom"><span class="style28 style34">Email</span></td>
                        <td align="center" valign="bottom"><input type="text" name="email" id="email" size="30" /></td>
                      </tr>
                      <tr>
                        <td align="center" valign="bottom"><span class="style28 style34">Mobile No </span></td>
                        <td align="center" valign="bottom"><input name="mob" id="mob" type="text" size="30" /></td>
                      </tr>
                      <tr>
                          <td>
                              <%
                                                       String message=request.getParameter("Message");
                                                       if(message!=null && message.equalsIgnoreCase("success"))
                                                       {
                                                               out.println("<font color='red' size='+1'><blink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registered Successfully !</blink></font>");
                                                       }
                                %>
                          </td>
                      </tr>
                    </table>
                    <p class="aligncenter style4">
                      <input type="submit" name="submit" value="Submit" onclick=" "/>
                    </p>
                   </form></td>
                </tr>
              </table>
        </div>
                   
                            <footer>
        <div id="site1" >
            <p>
                Copy Rights @ G C K Solutions-2014.
            </p>
        </div>
        </footer>
    </body>
</html>
 

No comments:

Post a Comment