Rumah >pembangunan bahagian belakang >tutorial php > 一个关于php构建测试表单的有关问题
求助一个关于php构建测试表单的问题
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <?php $con=mysql_connect("localhost","root",""); mysql_select_db("test"); mysql_query("set names gb2312"); ?>
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <?php error_reporting(E_ALL & ~ E_NOTICE); echo "<center>"; if (!$_POST["test_name"]) { echo "<h2>create test</h2>"; echo "
"; echo "clickhereto add question"; } else "error!!!".mysql_error(); mysql_close(); } echo "