Sent select value

0

Is there any way to select the value of a select and send it in the form?

<td>
    <select name="confirmar" id="confirmar" class=" form-control" required>
        <option value="valor1">Pendiente</option>
        <option value="valor2">revisado</option>
    </select>
</td>
<td>
    <form action="{{action('CuentaController@destroy', $usuario->id)}}" method="post">
        {{csrf_field()}}
        <button class="btn btn-danger btn-xs" type="submit"><span class="glyphicon glyphicon-trash"></span></button>
    </form>
</td>

As I have it here I would not know how to include that value in the form.

    
asked by zereft 26.10.2018 в 04:35
source

1 answer

1

All the values that you want to send with the form have to be defined within it:

<form action="{{action('CuentaController@destroy', $usuario->id)}}" method="post">
    {{csrf_field()}}
    <table>
        <tr>
            <td>
                <select name="confirmar" id="confirmar" class=" form-control" required>
                    <option value="valor1">Pendiente</option>
                    <option value="valor2">revisado</option>
                </select>
            </td>
            <td>
                <button class="btn btn-danger btn-xs" type="submit"><span class="glyphicon glyphicon-trash"></span></button>
            </td>
        </tr>
    </table>
</form>
    
answered by 26.10.2018 / 10:02
source