20 lines
481 B
PHP
20 lines
481 B
PHP
<?php
|
|
include("db/category.php");
|
|
|
|
if($_GET["category_name"] != "")
|
|
{
|
|
create_category($_GET["category_name"]);
|
|
}
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<title>Create New Category</title>
|
|
</head>
|
|
<body >
|
|
<form action="create_category.php">
|
|
<label for="category_name">Category Name:</label><input type="text" id="category_name" name="category_name"><br>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
</body>
|
|
</html>
|