-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
50 lines (49 loc) · 963 Bytes
/
main.php
File metadata and controls
50 lines (49 loc) · 963 Bytes
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
<?php
if(isset($_POST['add']))
header('Location: add.php');
else if(isset($_POST['view']))
header('Location: view.php');
else if(isset($_POST['edit']))
header('Location: edit.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>Main</title>
<style>
body
{
background-color:grey;
padding : 150px 0px 150px 0px;
}
form
{
background-color:white;
width:20%;
padding : 10px 20px 10px 20px;
font-size:25px;
}
input
{
font-size : 20px;
}
#submit
{
background-color:lightgreen;
width:100%;
}
</style>
</head>
<body>
<center>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<center>
<br>
<input type="submit" name="add" value="Add" id="submit"><br><br>
<input type="submit" name="view" value="View" id="submit"><br><br>
<input type="submit" name="edit" value="Edit" id="submit"><br><br>
</center>
</form>
</center>
</body>
</html>