<!
DOCTYPE html>
<html>
<head>
<title>Student Registration</title>
</head>
<body>
<h1>Student Registration</h1>
<nav>
<a href="index.html">Home</a> |
<a href="pagetwo.html">Page Two</a>
</nav>
<br>
<form name="studentDetail" method="POST"
onsubmit="submitForm(event)">
<fieldset style="width: 50px;">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br><br>
<label for="phone">Phone Number:</label><br>
<input type="text" id="phone" name="phone"><br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
<script>
document.getElementById("phone").addEventListener("input", function
() {
this.value = this.value.replace(/[^0-9]/g, '');
});
function submitForm(e) {
e.preventDefault();
alert("Detail submitted");
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Lecturer Information</title>
</head>
<body>
<a href="index.html">Back to Home</a>
<br><br>
<table style="width:80%; height:420px; border:2px solid green;"
border="1">
<tr>
<th>Unit</th>
<th>Lecturer</th>
</tr>
<tr><td>Computer Maths</td><td>Ms. Occupy Temo</td></tr>
<tr><td>Web Design</td><td>Mr. Ali Agomo</td></tr>
<tr><td>Artificial Intelligence</td><td>Mr. Anguka Jabari</td></tr>
<tr><td>Algorithm & Data Structures</td><td>Ms. Nayo
Sitati</td></tr>
<tr><td>Java Programming</td><td>Mr. Hassan Mwasi</td></tr>
<tr><td>Information Systems</td><td>Ms. Jibu Likoni</td></tr>
<tr><td>Operating Systems</td><td>Dr. Aloo Chao</td></tr>
</table>
<br>
<button onclick="alert('You have view page 2')">View</button>
</body>
</html>