基本上我正在制作一个按钮列表,我想要一个 $_POST['submit'] 根据按下的按钮从数据库中删除。我想在提交按钮中保留两个值。
...while($row = mysqli_fetch_array($paperToReview)){
if ($row > 0) {
echo '<td width = 200><input type=submit name=' . $row['uid'] . 'value=RemoveRow />';
echo '</tr>';
}}
if (isset($_POST['submit']) && $_POST['submit'] =='RemoveRow'){
DBSubmit("DELETE FROM paper_review WHERE paper_reviewer_id = '" ???submit button name???"' AND paperid = '"???some other part of the submit button"'");