Pick up value by selecting from a combobox and send to a php capo

Asked

Viewed 23 times

-2

Comes a product query from the bank, and will be placed in a combobox, I have to display the unit of measure (which is in the same table in the BD) in a text field, after the user select the product.

Note: I use the framework (in the latest version).

                                    <td>
                                        <div class="col-md-12">
                                            <div class="form-group @if ($errors->has('55')) has-error @endif">
                                                {{ Form::text('55',$ordemCompra->ferramenta_id, array('class' => 'form-control', 'readonly'  => TRUE )) }}
                                                @if ($errors->has('55'))
                                                    <span class="help-block">
                                                    <strong>
                                                        {{ $errors->first('55') }}
                                                    </strong>
                                                </span>
                                                @endif
                                            </div>
                                        </div>
                                    </td>

code, this ferramnta is the product.

1 answer

0

Another alternative is

<td>
    <div class="col-md-12">
       <div class="form-group @if ($errors->has('55')) has-                 error @endif">
        <form action={{   suarota() }}>
            <input type="text" maxlength="55" name="ferramenta_id" value={{ $ordemCompra->ferramenta_id }} readonly/>
        </form>
         <span class="help-block">
         <strong>
             {{ $errors->first('55') }}
         </strong>
         </span>
         @endif
        </div>
       </div>
      </td>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.