-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
65 lines (57 loc) · 1.53 KB
/
index.php
File metadata and controls
65 lines (57 loc) · 1.53 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PHP Semester Project</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f6f8;
}
.container {
width: 400px;
margin: 60px auto;
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
text-align: center;
}
input {
width: 100%;
padding: 8px;
margin-top: 6px;
}
button {
margin-top: 15px;
width: 100%;
padding: 10px;
background-color: #2c7be5;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #1a5bb8;
}
</style>
</head>
<body>
<div class="container">
<h1>PHP Semester Project</h1>
<form method="post" action="results.php">
<label>Student Name</label>
<input type="text" name="student_name">
<label>Grade 1</label>
<input type="number" name="grade1" min="0" max="20">
<label>Grade 2</label>
<input type="number" name="grade2" min="0" max="20">
<label>Grade 3</label>
<input type="number" name="grade3" min="0" max="20">
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>