当我试图验证我的数据时,我得到了这个错误,我不明白为什么它是“意外”
//Requests fields from form on previous page
$CDID = $_REQUEST['CDID'];
$CDTitle = isset($_REQUEST['CDTitle']) ? $_REQUEST['CDTitle'] :null;
$CDYear = isset($_REQUEST['CDYear']) ? $_REQUEST['CDYear'] :null;
$catID = isset($_REQUEST['catID']) ? $_REQUEST['catID'] :null;
$pubID = isset($_REQUEST['pubID']) ? $_REQUEST['pubID'] :null;
if(empty($CDTitle) || (empty($CDYear) || (empty($catID) || (empty($pubID)){
die("<p> You must enter all fields</p>\n");}