//发表留言 function AddGbook($add){ global $empire,$dbtbpre,$level_r,$public_r; CheckCanPostUrl();//验证来源 $bid=(int)getcvar('gbookbid'); if(empty($bid)) { $bid=intval($add[bid]); } $name=RepPostStr(trim($add[name])); $email=RepPostStr($add[email]); $call=RepPostStr($add[call]); $lytext=RepPostStr($add[lytext]); if(empty($bid)||empty($name)||!trim($lytext)) { printerror("EmptyGbookname","history.go(-1)",1); } if(!chemail($email)) { printerror("EmailFail","history.go(-1)",1); } //验证码
以上代码应没错吧,还是提示要输入邮箱的信息
|