--------------------------------------------------------------------------------------------------------------------------------
student Registration Form(HTML file)
<html>
<head>
<title>student Registration Form</title>
</head><center>
<body>
<h1>student Register Form</h1>
<form action="main.jsp" method="post">
<table style="with: 50%">
<tr>
<td>First Name</td>
<td><input type="text" name="first_name" /></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="last_name" /></td>
</tr>
<tr>
<td>phone</td>
<td><input type="text" name="phone" /></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>gender</td>
<td><input type="radio" name="gender" value="male"/>
male
<input type="radio" name="gender" value="female"/>
female</td>
</tr>
<tr>
<td>branch</td>
<td><select name="branch">
<option value="mca">mca</option>
<option value="ms.c">ms.c</option>
<option value="mba">mba</option>
</td>
</tr>
<tr>
<td>Address</td>
<td><textarea name="address"></textarea></td>
</tr>
</table>
<h3> Enter Marks</h3>
<table style="with: 50%" border="1" >
<tr >
<td>math</td>
<td>java</td>
<td>ooad</td>
<td>itej</td>
</tr>
<tr>
<td><input type="text" name="math" /></td>
<td><input type="text" name="java" /></td>
<td><input type="text" name="ooad" /></td>
<td><input type="text" name="itej" /></td>
</tr>
</table>
<input type="submit" value="Submit" /></form></center>
</body>
</html>
student Registration Form(jsp file)
<html>
<head>
<title>student Registration Form</title>
</head><center>
<body>
<h1>student Register Form</h1>
<table style="with: 50%">
<tr>
<td>First Name</td>
<td><%request.getParameter("First_name")%></td>
</tr>
<tr>
<td>Last Name</td>
<td><%request.getParameter("Last_name")%></td>
</tr>
<tr>
<td>phone</td>
<td><%request.getParameter("phone")%></td>
</tr>
<tr>
<td>Email</td>
<td><%request.getParameter("mail")%></td>
</tr>
<tr>
<td>gender</td>
<td><%request.getParameter("gender")%></td>
</tr>
<tr>
<td>branch</td>
<td><%request.getParameter("branch")%></td>
</tr>
<tr>
<td>Address</td>
<td><%request.getParameter("address")%></td>
</tr>
</table>
<h3> Enter Marks</h3>
<table style="with: 50%" border="1" >
<tr >
<td>math</td>
<td>java</td>
<td>ooad</td>
<td>itej</td>
</tr>
<tr>
<td><%request.getParameter("math")%></td>
<td><%request.getParameter("java")%></td>
<td><%request.getParameter("ooad")%></td>
<td><%request.getParameter("itej")%></td>
</tr>
</table>
</center>
</body>
</html>
<head>
<title>student Registration Form</title>
</head><center>
<body>
<h1>student Register Form</h1>
<table style="with: 50%">
<tr>
<td>First Name</td>
<td><%request.getParameter("First_name")%></td>
</tr>
<tr>
<td>Last Name</td>
<td><%request.getParameter("Last_name")%></td>
</tr>
<tr>
<td>phone</td>
<td><%request.getParameter("phone")%></td>
</tr>
<tr>
<td>Email</td>
<td><%request.getParameter("mail")%></td>
</tr>
<tr>
<td>gender</td>
<td><%request.getParameter("gender")%></td>
</tr>
<tr>
<td>branch</td>
<td><%request.getParameter("branch")%></td>
</tr>
<tr>
<td>Address</td>
<td><%request.getParameter("address")%></td>
</tr>
</table>
<h3> Enter Marks</h3>
<table style="with: 50%" border="1" >
<tr >
<td>math</td>
<td>java</td>
<td>ooad</td>
<td>itej</td>
</tr>
<tr>
<td><%request.getParameter("math")%></td>
<td><%request.getParameter("java")%></td>
<td><%request.getParameter("ooad")%></td>
<td><%request.getParameter("itej")%></td>
</tr>
</table>
</center>
</body>
</html>
No comments:
Post a Comment