N
N
Nevershot2017-10-07 16:46:23
Laravel
Nevershot, 2017-10-07 16:46:23

How to make Form::select return the name and not the value(Value)?

<select>
<option value="0">Dens</option>
</select>

How to return Dens value in php. The form is compiled through the Laravel helper Form::select('filter,$filter), so I can't change the value (value) in any way (at least I haven't found it). The value 0 is returned to the post array.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-10-07
@conturov

Remove value and then the value will be Denis.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question