簡體   English   中英

Laravel:輸入舊的單選按鈕

[英]Laravel: Input old for radio button

我想用單選按鈕插入Input :: old

<td>{{ Form::radio('student['.$user->student_id.'][status]', 'present', (Input::old('student') == 'present')) }}</td>
<td>{{ Form::radio('student['.$user->student_id.'][status]', 'late', (Input::old('student') == 'late')) }}</td>
<td>{{ Form::radio('student['.$user->student_id.'][status]', 'absent', (Input::old('student') == 'absent'))  }}</td>
<td>{{ Form::radio('student['.$user->student_id.'][status]', 'others', (Input::old('student') == 'others'))  }}</td>

我試過了,它不起作用:(請幫助

這樣嘗試

{{ Form::radio('student', 'present', (Input::old('student') == 'present'), array('id'=>'present', 'class'=>'radio')) }}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM