<?php
  include"conn.php";
  $mc=$_POST['mc'];
  $ms=$_POST['ms'];
    
  $arr=mysql_query("insert into type(typename,typedes)values('$mc','$ms')");
   if($arr)
   {
    echo"<script> alert('添加成功,请继续操作');window.location.href='leibieym.php';</script>";
   }
else
    {
    echo"<script> alert('不能为空');window.location.href='leibieym.php';</script>";
   }
   
?>