使用多维数组时,我的`$_POST 中不断得到一个未定义的索引,vidid
但我不知道为什么会得到这个?
下面是jquery:
var videocounter = 0;
function stopVideoUpload(success, videoID, videofilename){
var result = '';
videocounter++;
if (success == 1){
result = '<span class="videomsg'+videocounter+'">The file was uploaded successfully</span>';
$('.hiddenvid').append('<input type="hidden" name="vidid[" + videocounter + "][]" id="'+videoID+'" value="' + videoID + '" />');
return true;
}
下面是 $_POST:
$vidresults = $_POST['vidid'];