Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@page import="java.util.Date"%>
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="ISO-8859-1">
- <title>register form</title>
- <style>
- input[type=text], select {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- border-radius: 4px;
- box-sizing: border-box;
- }
- h1{
- text-align: center;
- }
- input[type=submit] {
- width: 49%;
- background-color: #4CAF50;
- color: white;
- padding: 14px 20px;
- margin: 8px 0;
- border: none;
- border-radius: 4px;
- }
- input[type=reset]:hover {
- background-color: #45a049;
- }
- input[type=reset] {
- width: 50.5%;
- background-color: #4CAF50;
- color: white;
- padding: 14px 20px;
- margin: 8px 0;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- input[type=submit]:hover {
- background-color: #45a049;
- }
- .container{
- border-radius: 5px;
- background-color: #f2f2f2;
- padding: 20px;
- }
- .vertical-center {
- margin: 0;
- position: absolute;
- top: 50%;
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- </style>
- </head>
- <body>
- <div class="container">
- <h1>Register Form</h1>
- <form name="demoForm" action="result.jsp" method="post">
- <table align="center">
- <tbody>
- <tr>
- <td>First Name:</td>
- <td><input type="text" name="first" value="" size="50"></td>
- </tr>
- <tr>
- <td>Last Name:</td>
- <td><input type="text" name="last" value="" size="50"></td>
- </tr>
- <tr>
- <td>E-mail</td>
- <td><input type="text" name="email" value="" size="50"></td>
- </tr>
- <tr>
- <td>Tel</td>
- <td><input type="text" name="tel" value="" size="50"></td>
- </tr>
- </tbody>
- </table>
- <br>
- <input type="submit" value="Submit" class="submit" align="center">
- <input type="reset" value="Clear" class="clear" align="center">
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement