一个很傻的无限分类(4)
</li>
</ul>
</div>
</form>
</div>
</body>
</html>
<?
/**
* 无限分类
* 2011/8/23
* kcj
* */
include "../conn/conn.php";
$flpid=$_POST['flpid'];
$fltitle=$_POST['title'];
$fldes=$_POST['des'];
if(isset($_POST['action'])!=''&&$_POST['action']="add"){
$sql="insert into fenlei (flpid,fltitle,fldes) value('".$flpid."','".$fltitle."','".$fldes."')";
mysql_query($sql);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<meta name="Author" content="kcj" />
<meta name="Keywords" content="php,lampbrother" />
<link rel="stylesheet" type="text/css" href="style/lampcms.css">
<script src="javascript/common.js"></script>
<script type="text/javascript">
function vaFl(addfl){
if(addfl.title.value==''){
alert("栏目名称不能为空!");
addfl.title.focus();
return false;
}
if(addfl.des.value==''){
alert("栏目描述不能为空!");
addfl.des.focus();
return false;
}
}
</script>
</head>
<body>
<div id="main">
后台管理->添加分类
<form method="post" action="" name="addfl" onsubmit="return vaFl(this)">
相关新闻>>
- 发表评论
-
- 最新评论 更多>>