<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<? 
$conn = mysql_connect("localhost","root",""); 
$action = $_POST['action']; 
if($action == 'send'){ $xm = $_POST['xm']; $tel = $_POST['tel']; mysql_select_db("dmm",$conn); $sql = "INSERT INTO d (xm,tel) VALUES ('$xm','$tel')"; $result = mysql_query($sql,$conn); } ?> 
<script type="text/javascript" language="javascript">alert("产品添加成功！");location.href="tj.php";</script>;
</body>
</html>
