htmlentities()期望参数1是字符串,给定数组,我已经尝试了一切

时间:2016-04-19 06:23:08

标签: laravel

这是我的刀片文件代码 -

<select name="edu_name[]" class="form-control input-md" onchange="ChooseContact(this)">
                            <option selected="true" style="display:none;">Select Degree</option>
                                @foreach ($objMasterEducation as $dropdown)
                                    <option value="{{$dropdown->id}}" class="form-control">{{$dropdown->edu_name}}</option>
                                @endforeach
                                </select>           </div>
                </div>
                </div>
                <div class="row-fluid">
            <div class="col-sm-4">
                    <div class="form-group">
                        <input type="text" name="institute[]" id="institute" class="form-control input-md" placeholder="institute" tabindex="1" value="{{ old('institute') }}">
                    </div>
                </div>
</div>          
<div class="row-fluid"> 
<div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" name="from_year[]" id="from_year" class="form-control input-md" placeholder="from year" tabindex="1" value="{{ old('from_year') }}">
                    </div>
                </div>
                </div>
                <div class="row-fluid">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" name="to_year[]" id="to_year" class="form-control input-md" placeholder="to year" tabindex="1" value="{{ old('to_year') }}">
                    </div>
                    </div>
                </div>
                <div class="row-fluid">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type`=`"text" name="percentage[]" id="percentage" class="form-control input-md" placeholder="percentage" tabindex="1" value="{{ old('percentage') }}">
                    </div>
            </div>

....在请求文件中给出错误 我已经尝试了一切,但除了第一行表单字段

之外,它没有将多个数据保存到数据库中

0 个答案:

没有答案