复选框的旧数据

时间:2018-08-17 12:52:48

标签: laravel-5 laravel-blade

如何获取以下复选框的旧值

  @if (count($chests) > 0)
          @foreach ($chests as $chest)
          <br>  Day:
                @for ($i = 0; $i < $days; $i++)
                  <label><input type="checkbox" name="{{str_replace(' ', '_', $chest->name)}}_days[]"
                    value="{{$i+1}}">{{$i+1}}</label>

                @endfor
                <br>
              <label><input type="checkbox" name="chest[]" value="{{$chest->name}}">{{$chest->name}}</label><br>
              <div id="div01">
              <input type="text" id ="hint" name="{{str_replace(' ', '_', $chest->name)}}_hints[]" placeholder="Hints / Repeats etc">
              </div>
          @endforeach
          @else
            No Register Machines
          @endif

如何获取复选框的旧值

0 个答案:

没有答案