当我按下“提交”按钮时,我想在 rateFunction.php 中发送“等级”值和值 $chosenBarName,有没有简单的方法可以做到这一点?我只成功获得了“等级”值......
$chosenID = $row['BarName'];
echo "<td>" . $row['BarID'] . " " . $row['BarName'] . "<br>" . $row['Website'] . "</td>";
<form method="post" action="rateFunction.php">
<select name="grade">
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>
<input type="submit" name="submit"/>
</form>