1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php require("configure.php"); ?> <? $pid = $_POST["pid"]; //$catname = $_POST["catname"]; $catname = htmlspecialchars($_POST["catname"],ENT_QUOTES); $templateid = $_POST["templateid"]; $sortby = $_POST["sortby"];
mysql_query("insert into categories (parentid, catname, sortby, templateid) values ('$pid', '$catname', $sortby, '$templateid')"); mysql_close($dbh);
header("Location: categoriesindex.php?pid=$pid&msg=Add Successful"); ?>
|