<?php
mysql_connect("localhost","root","");
mysql_select_db("lianxi");
mysql_query("insert into aa(first_name,last_name)values('$first_name','$last_name')");
setcookie("CookieID",mysql_insert_id(),time()+94608000,"/");/*三年后cookie才会失效*/
?>
<html>
<body>
<?php
print($first_name);
print("");
print($last_name);
print("<p>");
print("感谢填写注册表");
?>
</body>
</html>