明細行のあるデータでセル単位でデータをpostで受信したい
view側の記載
<input name=”sgnobtn[‘.$i.’][‘.$j.’]” type=”submit”でボタンを複数配列とする
渡すデータはhiddenで記載
print'<input name="dlcd['.$i.']['.$j.']" type="hidden" value ="'.$dlcdarray[$i][$j].'">';
print'<input name="sgymd['.$i.']['.$j.']" type="hidden" value ="'.$oldymd.'">';
print'<input name="sgnobtn['.$i.']['.$j.']" type="submit" value = "'????
.'" class="btn btn btn-secondary btn-sm" tabindex="-1" >';
受ける側 keyを2回
$gyo=key($_POST[‘sgnobtn’]);
$gyo2=key($_POST[‘sgnobtn’][$gyo]);
$dlcd = $_POST[‘sgymd’][$gyo][$gyo2];
$sgymd = $_POST[‘sgno’][$gyo][$gyo2];