PHP检测表单提交 求找错误
if($_post["submit"])
{
include 'config.php';
$con = mysql_connect("$db_host","$db_username","$db_password") or die ('MYSQL数据库链接失败');
mysql_select_db($db_name,$con);
mysql_query("set names utf8;");
$p=$_post['p'];
$p=(int)$p;
$linkurl=$_POST['linkurl'];
$linkdes=$_POST['linkdes'];
$linkname=$_POST['linkname'];
$linkpic=$_post['$linkpic'];
mysql_query("INSERT INTO links values ('$p','$linkname','$linkurl','$linkpic','$linkdes')");
echo "OK!";
mysql_close($con);}
else
echo "false";