php表单提交之后出现错误500
页面正常能访问,但是一提交表单之后,就出现错误500信息了,但是数据能填进数据库里,这一般是什么原因呢if($_POST["fff"]){$username=$_SESS...
页面正常能访问,但是一提交表单之后,就出现错误500信息了,但是数据能填进数据库里,这一般是什么原因呢
if($_POST["fff"])
{
$username=$_SESSION["username1"];
$aclassid=$_POST["fff"];
//echo $aclassid;
$title=$_POST["title"];
if($_FILES["picarray"]["name"])
{
$file= new file_tools();
$pic=$file->count_uploads("picarray",2000*1000);
//print_r($picurl);
$picurl=implode(",",$pic);
}else
{
echo "<script>alert('123');</script>";
$picurl="logo.jpg";
}
$content=$_POST["content"];
$tel=$_POST["tel"];
$email=$_POST["email"];
$qq=$_POST["qq"];
$name=$_POST["name"];
$timer=strtotime(date("Y-m-d H:i:s"));
$sql_obj->sql_add("infolist",array("username"=>"$username","aclassid"=>"$aclassid","title"=>"$title","picarray"=>"$picurl","content"=>"$content","tel"=>"$tel","email"=>"$email","qq"=>"$qq","name"=>"$name","posttime"=>"$timer"));
echo "<script>alert('发布成功');window.navigate('bianli_chenggong.php');</script>";
} 展开
if($_POST["fff"])
{
$username=$_SESSION["username1"];
$aclassid=$_POST["fff"];
//echo $aclassid;
$title=$_POST["title"];
if($_FILES["picarray"]["name"])
{
$file= new file_tools();
$pic=$file->count_uploads("picarray",2000*1000);
//print_r($picurl);
$picurl=implode(",",$pic);
}else
{
echo "<script>alert('123');</script>";
$picurl="logo.jpg";
}
$content=$_POST["content"];
$tel=$_POST["tel"];
$email=$_POST["email"];
$qq=$_POST["qq"];
$name=$_POST["name"];
$timer=strtotime(date("Y-m-d H:i:s"));
$sql_obj->sql_add("infolist",array("username"=>"$username","aclassid"=>"$aclassid","title"=>"$title","picarray"=>"$picurl","content"=>"$content","tel"=>"$tel","email"=>"$email","qq"=>"$qq","name"=>"$name","posttime"=>"$timer"));
echo "<script>alert('发布成功');window.navigate('bianli_chenggong.php');</script>";
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询