Selepas menaik taraf PHP daripada 5.2 kepada 5.6, apabila menghantar borang papan mesej dan menekan butang hantar, kotak gesaan kejayaan penyerahan JS tidak akan muncul. Bolehkah sesiapa menyemak untuk melihat sama ada sintaks versi PHP yang berbeza perlu dilaraskan? awak.
$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 ();