-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathNChaitanya
83 lines (81 loc) · 2.58 KB
/
NChaitanya
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<html>
<head>
</head>
<body>
<form>
<h3 align="center">STUDENT REGISTRATION FORM</h3>
<table cellpadding="4"width="30%"bgcolor="eee00"align="center" cellspacing="2">
<tr>
<td colspan=2>
<center><font size=4><b></b></font></center>
</td>
</tr>
<tr>
<td>First Name</td>
<td><Input type="text"name="fnames"id="fname"size="30"></td>
</tr>
<tr>
<td>Middle Name</td>
<td><input type="text"name="mname"id="mname"size="30"></td>
</tr>
<tr>
<td>Last Name</td>
<td><Input type="text"name="1name"id="1name"size="30"</td>
</tr>
<tr>
<td>Address</td>
<td> <textarea id="address" rows="2" cols="25"></textarea></td>
<tr>
</tr>
<td>PinCode</td>
<td><input type="text"name="pincode"id="pincode"size="7"></td>
</tr>
<tr>
<td>Mobile No</td>
<td><input type="text"name="mobileno"id="mobileno"size="12"></td>
</tr>
<tr>
<td>sex</td>
<td><input type="radio"name="sex"value="male"size="10"id="gen">Male
<input type="radio"name="sex"value="Female"size="10"id="gen">Female</td>
</tr>
<td>Courses</td>
<td><select name="courses"id="course">
<option value="-1"selected>select.</option>
<option value="B.Sc CS">BSc.CS</option>
<option value="B.Tech">B.TECH</option>
<option value="MCA">MCA</option>
<option value="MBA">MBA</option>
<option value="BCA">BCA</option>
</select>
</td>
</tr>
<tr>
<td><input type="reset"></td>
<td colspan="2">
<input type="submit"onclick="showInput();"/></td>
</tr>
</table>
</form>
<h3 align="center">DISPLAY DATA</h3>
<table cellpadding="0"width="50%"bgcolor="FFDDDD"align="center"cellspacing="0"border="1">
<tr><td width="30%">Name of the Student:</td><td width="70%"id='studname'></td></tr>
<tr><td width="30%">Address:</td><td width="70%"><span id='addr'></span></td></tr>
<tr><td width="30%">Email No:</td><td width="70%"id='email'></td></tr>
<tr><td width="30%">Mobile No:</td><td width="70%"id='mobile'</td></tr>
<tr><td width="30%">Sex:</td><td width="70%"id='sex'></td></tr>
<tr><td width="30%">Course:</td><td width="70%"id='qualli'></td></tr>
</table>
<script language="Javascript">
function showInput()
{
document.getElementById('studname').innerHTML=document.getElementById("fname").value+""document.getElementById("mname").value+""+document.getElementById("Iname").value;
document.getElementById('addr').innerHTML
=document.getElementById("address").value+","+document.getElementById("pincode").value;
document.getElementById("mobile").innerHTML=document.getElementById("mobileno").value;
document.getElementById("sex").innerHTML="document.getElementById("gen").value;
document.getElementById("quali").innerHTML="document.getElementById("course").value;
}
</script>
</body>
</html>