我的代码
$show=mysql_query("SELECT * FROM room_group_options");
while ($array = mysql_fetch_array($show))
{
$op_id = $array['op_id'];
$group = $array['group'];
echo "<form action = 'options.php' method = 'post'>";
echo "$op_id <input type='hidden' name='op_id' value='$op_id'>";
echo "<input type = 'text' name = 'group' value = '$group'>";
echo "<input type='button' name='edit' value='edit'>";
echo "<input type='button' name='del' value='delete'>";
echo "</form><br>";
}
echo "<form action = 'options.php' method = 'post'>
<input type = 'text' name = 'group'><br>
<input type = 'submit' name = 'addgroup'></form>";
我是 PHP 新手,我希望那些“编辑”和“删除”按钮将 POST 请求发送到 options.php 页面,但是当我点击按钮时,使用此代码没有任何反应。我该如何解决这个错误?
第二种形式的选项现在还可以