Mycode
    $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>";
I am a PHP newbie, I want those "edit" and "delete" buttons to send a POST request to a options.php page, but with this code when I hit a button nothing happens. How can I fix this error?
The second form option is ok for now
 
     
     
     
     
     
     
     
    