Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lab-exercises
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yahye Mohamed
lab-exercises
Commits
b0edb987
Commit
b0edb987
authored
Jan 19, 2017
by
Yahye Mohamed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload new file
parent
e52b1338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
addcategory.php
addcategory.php
+38
-0
No files found.
addcategory.php
0 → 100644
View file @
b0edb987
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment