i have a form with a select input, validation is fine, but upon failure the select field doesn't populate the old value here is my select field
<div class="control-group">
<label class="control-label">Gender :</label>
<div class="controls">
<select name="gender" value= "{{ Input::old('gender') }}">
<option>Select</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</div>
</div>
how can i solve this?
->withInput()
? – JosettejoseyForm::model
andForm::select
, the Laravel way :) – Josettejoseyselected
on the rightoption
. I don't see why you wouldn't use the Laravel form class, but that's me. – Josettejosey