-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddnew.php
More file actions
44 lines (36 loc) · 1.09 KB
/
Copy pathaddnew.php
File metadata and controls
44 lines (36 loc) · 1.09 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
<?php
session_start();
if (!isset($_SESSION['SESS_MEMBER'])) {
# code...
header('Location:login.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php
if (isset($_GET['id'])) {
# code...
echo "<script> alert('This Category already exists'); </script>";
}
?>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/adminstyle.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<?php include('include/nav2.php'); ?>
</nav>
<form class="all add-cat" action="createcat.php" method="POST">
<fieldset>
<legend>Add New Category</legend>
<label>Category Name:</label>
<input type="text" name="cname" style="width:40%"> <br> <br>
<input class="btn btn-default" type="submit" name="submit" value="Create"/>
<a class="btn btn-default back-btn" href="updatecat.php" role="button"><-Back</a>
</fieldset>
</form>
</body>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</html>