php从5.2升级到5.6后,提交留言板表单,按提交按钮后,不会跳出js的提交成功提示框了,有哪位可以看看,是不是php不同版本的语法哪里要调整下,谢谢!
$fsql -> query ("select field_caption,field_name,field_null,value_repeat from {P}_feedback where groupid='$groupid' and use_field = '1' order by xuhao"); $fieldArray = array(); while ($fsql -> next_record ()) { $field_caption = $fsql -> f ('field_caption'); $field_name = $fsql -> f ('field_name'); $field_null = $fsql -> f ('field_null'); $value_repeat = $fsql -> f ('value_repeat'); $nowvalue=$_POST[$field_name]; if ($field_null == "1" && (!isset ($nowvalue) || $nowvalue == "")) { echo $FormSendNTC1.$field_caption; exit; } if ($value_repeat == "0" && $nowvalue != "") { $tsql -> query ("select id from {P}_feedback_info where " . $field_name . "='" . $nowvalue . "' and groupid = '" .$groupid . "'"); if ($tsql -> next_record ()) { echo $field_caption.$FormSendNTC2; exit; } } //读取字段的名称: $fieldArray[$field_name] = $field_caption; } $sql = "select groupname from {P}_feedback_group where id = $groupid"; $fsql -> query($sql); $fsql -> next_record ();