Commit b0edb987 authored by Yahye Mohamed's avatar Yahye Mohamed

Upload new file

parent e52b1338
<?php
//This file is the base for all pages in the site. When creating a new page, we just open this one, then save a copy as the new page.
include("dbconnect.php");
session_start();
if(!isset($_SESSION['admin'])) {
header("Location:index.php");
}
if(!isset($_GET['update'])) {
$_SESSION['addcategory']="";
}
?>
<html>
<head>
<title>Welcome to YourClothes</title>
</head>
<body>
<div class="container">
<?php
include("header.php");
?>
<div class="maincontent">
<!-- main content goes here-->
<h1>Add new category</h1>
<form action="addcategoryconfirm.php" method="post">
<p>Name: <input name="name" value="<?php echo $_SESSION['addcategory']; ?>" /></p>
<p><input type="submit" /></p>
</form>
</div>
<?php
include("seccontent.php");
?>
<div class="footer"></div>
</div><!-- Container ends here-->
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment