-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddExpense.php
More file actions
38 lines (32 loc) · 973 Bytes
/
addExpense.php
File metadata and controls
38 lines (32 loc) · 973 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
<?php
session_start();
error_reporting(0);
include 'myFunctions.php';
if (isset($_POST['submit'])) {
insertCategory('expense',$_POST['category']);
header('location:allExpenseCategorys.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/addCategory.css">
</head>
<body>
<div class="center">
<h2 class="form-head">Expense</h2>
<form method="post">
<div class="txt_field">
<input type="text" name="category" required />
<label>Add Category</label>
</div>
<input type="submit" name="submit" value="ADD" style="margin-bottom: 10px;" />
<center><h3><a href="allExpenseCategorys.php">Cancel</a></h3></center>
</form>
</div>
</body>
</html>