-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.php
More file actions
54 lines (53 loc) · 1.12 KB
/
Copy pathinput.php
File metadata and controls
54 lines (53 loc) · 1.12 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
<!DOCTYPE html>
<html>
<head>
<style>
*{
text-align: center;
justify-content: center;
}
h1{
font-size: 5rem;
color: brown;
}
h2{
margin-top: 4rem;
font-size: 2rem;
color: green;
}
#sub{
cursor: pointer;
height: 2rem;
width: 5rem;
background-color: rgb(100, 151, 223);
border-radius: 2rem;
}
body{
background-image: url('photos/sky.jpg');
background-repeat: no-repeat;
background-size: cover;
backdrop-filter: blur(5px);
}
#box{
background-color: rgb(213, 183, 205);
}
</style>
</head>
<h1>Welcome CSEAIML 6th sem</h1>
<body>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Enter student roll no:<br> <input type="text" name="user_input" id="box">
<br>
<br>
<input type="submit" id="sub">
</form>
<?php
// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Retrieve the input value
$userInput = $_POST['user_input'];
// Display the input valu
}
?>
</body>
</html>